Skip to content

Commit c06dc10

Browse files
skangaskyleam
authored andcommitted
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. ]
1 parent 37bb354 commit c06dc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/org-mouse.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ this function is called. Otherwise, the current major mode menu is used."
208208
(interactive "@e \nP")
209209
(if (and (= (event-click-count event) 1)
210210
(or (not mark-active)
211-
(sit-for (/ double-click-time 1000.0))))
211+
(sit-for (/ (mouse-double-click-time) 1000.0))))
212212
(progn
213213
(select-window (posn-window (event-start event)))
214214
(when (not (org-mouse-mark-active))

0 commit comments

Comments
 (0)