aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-09-27 08:59:33 +0000
committerDave Love2000-09-27 08:59:33 +0000
commitd32af6dd3de230419e18095161c1ad7cec59deab (patch)
tree34aed9d72504a639c9d9b7cd29e1ee3a21ae5d84
parentc5785b73db756450f020586cfad630aba8b0c9d5 (diff)
downloademacs-d32af6dd3de230419e18095161c1ad7cec59deab.tar.gz
emacs-d32af6dd3de230419e18095161c1ad7cec59deab.zip
Fix last change.
-rw-r--r--lisp/mouse.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index d612a2017ec..90b9a572aeb 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -60,14 +60,14 @@ PREFIX is the prefix argument (if any) to pass to the command."
60 (if filter (funcall filter (symbol-function map)) map))))) 60 (if filter (funcall filter (symbol-function map)) map)))))
61 event) 61 event)
62 (unless position 62 (unless position
63 (let ((mp (mouse-position))) 63 (let ((mp (mouse-pixel-position)))
64 (setq position (list (list (cadr mp) (cddr mp)) (car mp))))) 64 (setq position (list (list (cadr mp) (cddr mp)) (car mp)))))
65 ;; The looping behavior was taken from lmenu's popup-menu-popup 65 ;; The looping behavior was taken from lmenu's popup-menu-popup
66 (while (and map (setq event 66 (while (and map (setq event
67 ;; map could be a prefix key, in which case 67 ;; map could be a prefix key, in which case
68 ;; we need to get its function cell 68 ;; we need to get its function cell
69 ;; definition. 69 ;; definition.
70 (x-popup-menu (or position (mouse-position)) (indirect-function map)))) 70 (x-popup-menu position (indirect-function map))))
71 ;; Strangely x-popup-menu returns a list. 71 ;; Strangely x-popup-menu returns a list.
72 ;; mouse-major-mode-menu was using a weird: 72 ;; mouse-major-mode-menu was using a weird:
73 ;; (key-binding (apply 'vector (append '(menu-bar) menu-prefix events))) 73 ;; (key-binding (apply 'vector (append '(menu-bar) menu-prefix events)))