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

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

[elpa] externals/transient 194139cdfd 3/7: transient--wrap-command: Rein


From: Jonas Bernoulli
Subject: [elpa] externals/transient 194139cdfd 3/7: transient--wrap-command: Reindent
Date: Tue, 23 Jan 2024 09:23:46 -0500 (EST)

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

    transient--wrap-command: Reindent
    
    Do this in a separate commit because the diff sure looks like much
    more changed than just some whitespace.
---
 lisp/transient.el | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index bc2fde7d10..aa2eab3f15 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2330,26 +2330,27 @@ value.  Otherwise return CHILDREN as is."
       (letrec
           ((prefix transient--prefix)
            (suffix this-command)
-           (advice (lambda (fn &rest args)
-                     (interactive
-                      (lambda (spec)
-                        (let ((abort t))
-                          (unwind-protect
-                              (prog1 (advice-eval-interactive-spec spec)
-                                (setq abort nil))
-                            (when abort
-                              (when-let ((unwind (oref prefix unwind-suffix)))
-                                (transient--debug 'unwind-interactive)
-                                (funcall unwind suffix))
-                              (advice-remove suffix advice)
-                              (oset prefix unwind-suffix nil))))))
-                     (unwind-protect
-                         (apply fn args)
+           (advice
+            (lambda (fn &rest args)
+              (interactive
+               (lambda (spec)
+                 (let ((abort t))
+                   (unwind-protect
+                       (prog1 (advice-eval-interactive-spec spec)
+                         (setq abort nil))
+                     (when abort
                        (when-let ((unwind (oref prefix unwind-suffix)))
-                         (transient--debug 'unwind-command)
+                         (transient--debug 'unwind-interactive)
                          (funcall unwind suffix))
                        (advice-remove suffix advice)
-                       (oset prefix unwind-suffix nil)))))
+                       (oset prefix unwind-suffix nil))))))
+              (unwind-protect
+                  (apply fn args)
+                (when-let ((unwind (oref prefix unwind-suffix)))
+                  (transient--debug 'unwind-command)
+                  (funcall unwind suffix))
+                (advice-remove suffix advice)
+                (oset prefix unwind-suffix nil)))))
         (advice-add suffix :around advice '((depth . -99)))))
 
   (defun transient--wrap-command ()



reply via email to

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