defined, rather than the obsolete mouse-major-mode-menu.
+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
(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)))