emacs-diffs
[Top][All Lists]
Advanced

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

master 294335b2304 1/2: ; Fix widget button press cancellation


From: Po Lu
Subject: master 294335b2304 1/2: ; Fix widget button press cancellation
Date: Tue, 30 Apr 2024 23:46:55 -0400 (EDT)

branch: master
commit 294335b2304028cc97aca036bd37adf2f8e1c508
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; Fix widget button press cancellation
    
    * lisp/wid-edit.el (widget-button--check-and-call-button): Throw
    nil if a mouse-button-derived press is canceled.  Reported by
    David Ponce <da_vid@orange.fr>.
---
 lisp/wid-edit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 2d82fbe7c89..3b467434d29 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1153,7 +1153,7 @@ If nothing was called, return non-nil."
                                 (when (and mouse-1 (mouse-movement-p event))
                                   (push event unread-command-events)
                                   (setq event oevent)
-                                  (throw 'button-press-cancelled t))
+                                  (throw 'button-press-cancelled nil))
                                 (unless (or (integerp event)
                                             (memq (car event)
                                                   '(switch-frame 
select-window))



reply via email to

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