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

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

[elpa] externals/embark d1f15708c3 27/30: Make embark--toggle-select a p


From: ELPA Syncer
Subject: [elpa] externals/embark d1f15708c3 27/30: Make embark--toggle-select a pre-action hook
Date: Thu, 20 Apr 2023 10:58:23 -0400 (EDT)

branch: externals/embark
commit d1f15708c311d996994bdb55d7f4ef4abaaccb7a
Author: Omar Antolín Camarena <omar.antolin@gmail.com>
Commit: Omar Antolín Camarena <omar.antolin@gmail.com>

    Make embark--toggle-select a pre-action hook
    
    I guess pre-action hooks are a little simpler.
---
 embark.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/embark.el b/embark.el
index 7e740f2313..c8e22602cb 100644
--- a/embark.el
+++ b/embark.el
@@ -409,7 +409,9 @@ the key :always are executed always."
     (mark embark--mark-target)
     ;; shells in new buffers
     (shell embark--universal-argument)
-    (eshell embark--universal-argument))
+    (eshell embark--universal-argument)
+    ;; do the actual work of selecting & deselecting targets
+    (embark-toggle-select embark--toggle-select))
   "Alist associating commands with pre-action hooks.
 The hooks are run right before an action is embarked upon.  See
 `embark-target-injection-hooks' for information about the hook
@@ -447,9 +449,7 @@ arguments and more details."
                 :value-type hook))
 
 (defcustom embark-around-action-hooks
-  '(;; do the actual work of selecting & deselecting targets
-    (embark-toggle-select embark--toggle-select)
-    ;; use directory of target as default-directory
+  '(;; use directory of target as default-directory
     (shell embark--cd)
     (eshell embark--cd)
     ;; narrow to target for duration of action



reply via email to

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