aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorVibhav Pant2020-08-21 14:04:35 +0530
committerVibhav Pant2020-08-21 14:04:35 +0530
commitf0f8d7b82492e741950c363a03b886965c91b1b0 (patch)
tree19b716830b1ebabc0d7d75949c4e6800c0f104ad /lisp/mouse.el
parent9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff)
parentc818c29771d3cb51875643b2f6c894073e429dd2 (diff)
downloademacs-feature/native-comp-macos-fixes.tar.gz
emacs-feature/native-comp-macos-fixes.zip
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el28
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.
279Default 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.
287The contents are the items that would be in the menu bar whether or
288not 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'.
296Use 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