Commit 0e47efc5 authored by Glenn Morris's avatar Glenn Morris
Browse files

(org-mouse-show-context-menu): Use mouse-menu-major-mode-map, if

defined, rather than the obsolete mouse-major-mode-menu.
parent b60861e6
2009-01-16 Glenn Morris <rgm@gnu.org>
* org-mouse.el (org-mouse-show-context-menu): Use
mouse-menu-major-mode-map, if defined, rather than the obsolete
mouse-major-mode-menu.
2008-12-23 Carsten Dominik <dominik@science.uva.nl>
* org-remember.el (org-remember-handler): Safer way to get a new
......
......@@ -217,7 +217,10 @@ this function is called. Otherwise, the current major mode menu is used."
(sit-for 0)))
(if (functionp org-mouse-context-menu-function)
(funcall org-mouse-context-menu-function event)
(mouse-major-mode-menu event prefix)))
(if (fboundp 'mouse-menu-major-mode-map)
(popup-menu (mouse-menu-major-mode-map) event prefix)
(with-no-warnings ; don't warn about fallback, obsolete since 23.1
(mouse-major-mode-menu event prefix)))))
(setq this-command 'mouse-save-then-kill)
(mouse-save-then-kill event)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment