*** New minor mode 'context-menu-mode' for context menus popped by 'mouse-3'.
When this mode is enabled, clicking 'down-mouse-3' anywhere in the buffer
pops up a menu whose contents depends on surrounding context near the
-mouse click. You can customize the order of the default sub-menus in
-the context menu by customizing the user option
-'context-menu-functions'.
+mouse click. You can change the order of the default sub-menus in the
+context menu by customizing the user option 'context-menu-functions'.
+++
*** The "Edit => Clear" menu item now obeys a rectangular region.
(defun context-menu-map ()
"Return composite menu map."
- (let ((menu (make-sparse-keymap "Context Menu")))
+ (let ((menu (make-sparse-keymap)))
(run-hook-wrapped 'context-menu-functions
(lambda (fun)
(setq menu (funcall fun menu))
"Minor modes submenus."
(run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
(define-key-after menu [separator-minor] menu-bar-separator)
- (dolist (mode (minor-mode-key-binding [menu-bar]))
+ (dolist (mode (reverse (minor-mode-key-binding [menu-bar])))
(when (and (consp mode) (symbol-value (car mode)))
(map-keymap (lambda (key binding)
(when (consp binding)