emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/transient 4130f62966 11/25: transient--show: Run transi


From: Jonas Bernoulli
Subject: [elpa] externals/transient 4130f62966 11/25: transient--show: Run transient-setup-buffer-hook later
Date: Tue, 3 Dec 2024 14:35:01 -0500 (EST)

branch: externals/transient
commit 4130f62966ab9a27ae81c1a18b2f8996b212e9cb
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--show: Run transient-setup-buffer-hook later
    
    Run it before populating the buffer but after setting buffer-local
    variables, to allow user hooks to override our default values for
    these variables.
---
 CHANGELOG         | 3 +++
 lisp/transient.el | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index eaa23d53c6..8c74e30177 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,6 +15,9 @@
 - Added support for implementing ~transient-init-scope~ methods for
   prefix classes.
 
+- ~transient-setup-buffer-hook~ is now run later to allow overriding
+  more default settings.
+
 Bug fixes:
 
 - Fixes some menu navigation edge-cases.
diff --git a/lisp/transient.el b/lisp/transient.el
index 9c22ea1499..df4d7a9e70 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3811,7 +3811,6 @@ have a history of their own.")
                              (button-get (1- (point)) 'command))
                         (transient--heading-at-point))))
       (erase-buffer)
-      (run-hooks 'transient-setup-buffer-hook)
       (when transient-force-fixed-pitch
         (transient--force-fixed-pitch))
       (setq window-size-fixed (if (window-full-height-p) 'width t))
@@ -3830,6 +3829,7 @@ have a history of their own.")
         (setq cursor-type nil))
       (setq display-line-numbers nil)
       (setq show-trailing-whitespace nil)
+      (run-hooks 'transient-setup-buffer-hook)
       (transient--insert-groups)
       (when (or transient--helpp transient--editp)
         (transient--insert-help))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]