diff options
Diffstat (limited to 'lisp/mouse.el')
| -rw-r--r-- | lisp/mouse.el | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index d369545f18e..a06ca2a56ca 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -274,34 +274,6 @@ not it is actually displayed." | |||
| 274 | local-menu | 274 | local-menu |
| 275 | minor-mode-menus))) | 275 | minor-mode-menus))) |
| 276 | 276 | ||
| 277 | (defun mouse-major-mode-menu (event &optional prefix) | ||
| 278 | "Pop up a mode-specific menu of mouse commands. | ||
| 279 | Default to the Edit menu if the major mode doesn't define a menu." | ||
| 280 | (declare (obsolete mouse-menu-major-mode-map "23.1")) | ||
| 281 | (interactive "@e\nP") | ||
| 282 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | ||
| 283 | (popup-menu (mouse-menu-major-mode-map) event prefix)) | ||
| 284 | |||
| 285 | (defun mouse-popup-menubar (event prefix) | ||
| 286 | "Pop up a menu equivalent to the menu bar for keyboard EVENT with PREFIX. | ||
| 287 | The contents are the items that would be in the menu bar whether or | ||
| 288 | not it is actually displayed." | ||
| 289 | (declare (obsolete mouse-menu-bar-map "23.1")) | ||
| 290 | (interactive "@e \nP") | ||
| 291 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | ||
| 292 | (popup-menu (mouse-menu-bar-map) (unless (integerp event) event) prefix)) | ||
| 293 | |||
| 294 | (defun mouse-popup-menubar-stuff (event prefix) | ||
| 295 | "Popup a menu like either `mouse-major-mode-menu' or `mouse-popup-menubar'. | ||
| 296 | Use the former if the menu bar is showing, otherwise the latter." | ||
| 297 | (declare (obsolete nil "23.1")) | ||
| 298 | (interactive "@e\nP") | ||
| 299 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | ||
| 300 | (popup-menu | ||
| 301 | (if (zerop (or (frame-parameter nil 'menu-bar-lines) 0)) | ||
| 302 | (mouse-menu-bar-map) | ||
| 303 | (mouse-menu-major-mode-map)) | ||
| 304 | event prefix)) | ||
| 305 | 277 | ||
| 306 | ;; Commands that operate on windows. | 278 | ;; Commands that operate on windows. |
| 307 | 279 | ||