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

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

[elpa] externals/org c06dc10f39 13/50: Backport commit 2fba71cf1 from Em


From: ELPA Syncer
Subject: [elpa] externals/org c06dc10f39 13/50: Backport commit 2fba71cf1 from Emacs
Date: Tue, 4 Oct 2022 21:57:59 -0400 (EDT)

branch: externals/org
commit c06dc10f393334ae244d2679716e89f695d48275
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    Backport commit 2fba71cf1 from Emacs
    
    * lisp/org-mouse.el (org-mouse-show-context-menu): Use
    'mouse-double-click-time' instead of 'double-click-time'.
    
    Fix handling double-click-time nil or t
    2fba71cf1fadc9d681e6be250d152cc156bf6a00
    Stefan Kangas
    Mon May 2 12:03:08 2022 +0200
    
    [ km: Note that mouse-double-click-time isn't available until Emacs
      29; a follow-up commit will add a compatibility kludge. ]
---
 lisp/org-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index 20c20acc32..a590ff87f2 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -208,7 +208,7 @@ this function is called.  Otherwise, the current major mode 
menu is used."
   (interactive "@e \nP")
   (if (and (= (event-click-count event) 1)
           (or (not mark-active)
-              (sit-for (/ double-click-time 1000.0))))
+               (sit-for (/ (mouse-double-click-time) 1000.0))))
       (progn
        (select-window (posn-window (event-start event)))
        (when (not (org-mouse-mark-active))



reply via email to

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