Mercurial > emacs
changeset 8747:d7115dce85f9
(facemenu-update): Don't use quoted constant lists
in define-key. Reverse order of menu definitions.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 15 Sep 1994 02:15:29 +0000 |
parents | f7599d76594f |
children | fca85f8be890 |
files | lisp/facemenu.el |
diffstat | 1 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/facemenu.el Wed Sep 14 23:24:45 1994 +0000 +++ b/lisp/facemenu.el Thu Sep 15 02:15:29 1994 +0000 @@ -131,16 +131,19 @@ (define-key global-map facemenu-key facemenu-keymap)) ;; Define basic keys - (define-key facemenu-menu [update] '("Update Menu" . facemenu-update)) - (define-key facemenu-menu [display] '("Display" . list-faces-display)) - (define-key facemenu-menu [sep1] '("-------------")) - (define-key facemenu-menu [remove] '("Remove Properties" . - facemenu-remove-all)) - (define-key facemenu-menu [read-only] '("Read-Only". facemenu-set-read-only)) - (define-key facemenu-menu [invisible] '("Invisible" - . facemenu-set-invisible)) - (define-key facemenu-menu [sep2] '("---Special---")) - (define-key facemenu-menu [other] '("Other..." . facemenu-set-face)) + ;; We construct this list structure explicitly because a quoted constant + ;; would be pure. + (define-key facemenu-menu [other] (cons "Other..." 'facemenu-set-face)) + (define-key facemenu-menu [sep2] (list "---Special---")) + (define-key facemenu-menu [invisible] (cons "Invisible" + 'facemenu-set-invisible)) + (define-key facemenu-menu [read-only] (cons "Read-Only" + 'facemenu-set-read-only)) + (define-key facemenu-menu [remove] (cons "Remove Properties" + 'facemenu-remove-all)) + (define-key facemenu-menu [sep1] (list "-------------")) + (define-key facemenu-menu [display] (cons "Display" 'list-faces-display)) + (define-key facemenu-menu [update] (cons "Update Menu" 'facemenu-update)) ;; Define commands for face-changing (facemenu-iterate