From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/elisp/alias-menu-items.html | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 devdocs/elisp/alias-menu-items.html (limited to 'devdocs/elisp/alias-menu-items.html') diff --git a/devdocs/elisp/alias-menu-items.html b/devdocs/elisp/alias-menu-items.html deleted file mode 100644 index 30c0020f..00000000 --- a/devdocs/elisp/alias-menu-items.html +++ /dev/null @@ -1,14 +0,0 @@ -

Alias Menu Items

Sometimes it is useful to make menu items that use the same command but with different enable conditions. The best way to do this in Emacs now is with extended menu items; before that feature existed, it could be done by defining alias commands and using them in menu items. Here’s an example that makes two aliases for read-only-mode and gives them different enable conditions:

(defalias 'make-read-only 'read-only-mode)
-(put 'make-read-only 'menu-enable '(not buffer-read-only))
-(defalias 'make-writable 'read-only-mode)
-(put 'make-writable 'menu-enable 'buffer-read-only)
-
-

When using aliases in menus, often it is useful to display the equivalent key bindings for the real command name, not the aliases (which typically don’t have any key bindings except for the menu itself). To request this, give the alias symbol a non-nil menu-alias property. Thus,

(put 'make-read-only 'menu-alias t)
-(put 'make-writable 'menu-alias t)
-
-

causes menu items for make-read-only and make-writable to show the keyboard bindings for read-only-mode.

-

- Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
- https://www.gnu.org/software/emacs/manual/html_node/elisp/Alias-Menu-Items.html -

-
-- cgit v1.2.3