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

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

[elpa] externals/transient bad91f79ec 29/41: transient-with-shadowed-buf


From: Jonas Bernoulli
Subject: [elpa] externals/transient bad91f79ec 29/41: transient-with-shadowed-buffer: Move definition
Date: Sun, 12 Nov 2023 20:04:09 -0500 (EST)

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

    transient-with-shadowed-buffer: Move definition
---
 lisp/transient.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index d98323ea75..d4af5c94f9 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3377,12 +3377,6 @@ have a history of their own.")
 
 ;;; Draw
 
-(defmacro transient-with-shadowed-buffer (&rest body)
-  "While in the transient buffer, temporarly make the shadowed buffer current."
-  (declare (indent 0) (debug t))
-  `(with-current-buffer (or transient--shadowed-buffer (current-buffer))
-     ,@body))
-
 (defun transient--show-brief ()
   (let ((message-log-max nil))
     (if (and transient-show-popup (<= transient-show-popup 0))
@@ -3475,6 +3469,12 @@ have a history of their own.")
         (fit-window-to-buffer window nil (window-height window))
       (fit-window-to-buffer window nil 1))))
 
+(defmacro transient-with-shadowed-buffer (&rest body)
+  "While in the transient buffer, temporarly make the shadowed buffer current."
+  (declare (indent 0) (debug t))
+  `(with-current-buffer (or transient--shadowed-buffer (current-buffer))
+     ,@body))
+
 (defun transient--insert-groups ()
   (let ((groups (cl-mapcan (lambda (group)
                              (let ((hide (oref group hide)))



reply via email to

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