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

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

[elpa] externals/ergoemacs-mode 7ba903e4 04/87: Don't grow mouse command


From: Stefan Monnier
Subject: [elpa] externals/ergoemacs-mode 7ba903e4 04/87: Don't grow mouse commands & set this-command before command is called
Date: Wed, 14 Apr 2021 18:46:56 -0400 (EDT)

branch: externals/ergoemacs-mode
commit 7ba903e479402bdee44092647a879e023165058a
Author: Fidler <matthew.fidler@gmail.com>
Commit: Fidler <matthew.fidler@gmail.com>

    Don't grow mouse commands & set this-command before command is called
---
 ergoemacs-command-loop.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ergoemacs-command-loop.el b/ergoemacs-command-loop.el
index da97145..caa886a 100644
--- a/ergoemacs-command-loop.el
+++ b/ergoemacs-command-loop.el
@@ -1339,10 +1339,10 @@ FN-ARG-P can be nil, :drop-rest or :rest"
             `(interactive))
          ,(when select-window-p
             '(select-window (posn-window (event-start last-command-event))))
+        (ergoemacs-command-loop--execute-modify-command-list ',command)
          (if ,rest-p
              (apply ',command last-command-event ,@strip-args)
-           (,command last-command-event ,@drop-rest))
-        (ergoemacs-command-loop--execute-modify-command-list ',command)))
+           (,command last-command-event ,@drop-rest))))
      
      ((not rest-p)
       `(lambda ,fn-args
@@ -1351,8 +1351,8 @@ FN-ARG-P can be nil, :drop-rest or :rest"
             `(interactive))
          ,(when select-window-p
             '(select-window (posn-window (event-start last-command-event))))
-         (,command last-command-event ,@strip-args)
-        (ergoemacs-command-loop--execute-modify-command-list ',command))))))
+        (ergoemacs-command-loop--execute-modify-command-list ',command)
+         (,command last-command-event ,@strip-args))))))
 
 (defun ergoemacs-command-loop--call-mouse-command (command &optional 
record-flag keys)
   "Call a possible mouse COMMAND.
@@ -1373,7 +1373,7 @@ The RECORD-FLAG and KEYS arguments are passed to
     (popup-menu command nil current-prefix-arg))
    (t
     (ignore-errors
-      (ergoemacs-command-loop--grow-interactive 
(ergoemacs-command-loop--modify-mouse-command command) record-flag keys)))))
+      (call-interactively (ergoemacs-command-loop--modify-mouse-command 
command) record-flag keys)))))
 
 (defvar ergoemacs-command-loop-describe-key-functions
   '(describe-key describe-function)



reply via email to

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