Mercurial > emacs
diff lisp/menu-bar.el @ 99787:24e48b0174fa
Tweak previous change.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 22 Nov 2008 03:39:53 +0000 |
parents | 4f6e2e2864be |
children | d42aff5ca541 |
line wrap: on
line diff
--- a/lisp/menu-bar.el Sat Nov 22 03:34:55 2008 +0000 +++ b/lisp/menu-bar.el Sat Nov 22 03:39:53 2008 +0000 @@ -452,7 +452,7 @@ (defvar yank-menu (cons "Select Yank" nil)) (fset 'yank-menu (cons 'keymap yank-menu)) (define-key menu-bar-edit-menu [paste-from-menu] - '(menu-item "Paste From Kill Menu" yank-menu + '(menu-item "Paste from Kill Menu" yank-menu :enable (and (cdr yank-menu) (not buffer-read-only)) :help "Choose a string from the kill ring and paste it")) (define-key menu-bar-edit-menu [paste]