emacs-diffs
[Top][All Lists]
Advanced

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

master 3b3cf6c: Fix recent change in wid-edit


From: Lars Ingebrigtsen
Subject: master 3b3cf6c: Fix recent change in wid-edit
Date: Thu, 17 Sep 2020 17:46:34 -0400 (EDT)

branch: master
commit 3b3cf6c588f335ae046e4619d4f4f4ce29658c52
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix recent change in wid-edit
    
    * lisp/wid-edit.el (widget-button--check-and-call-button): Record the
    ending position of event, because we might need it when
    the :mouse-down-action function returns non-nil (bug#20664).
---
 lisp/wid-edit.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 8be489b..5ac5277 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -978,7 +978,8 @@ If nil, point returns to its original position after 
invoking a button.")
 If nothing was called, return non-nil."
   (let* ((oevent event)
          (mouse-1 (memq (event-basic-type event) '(mouse-1 down-mouse-1)))
-         newpoint pos)
+         (pos (widget-event-point event))
+         newpoint)
     (catch 'button-press-cancelled
       ;; Mouse click on a widget button.  Do the following
       ;; in a save-excursion so that the click on the button



reply via email to

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