From: Glenn Morris Date: Sat, 22 Nov 2008 03:39:53 +0000 (+0000) Subject: Tweak previous change. X-Git-Tag: emacs-pretest-23.0.90~1645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a0b63f7f4502eda39b64e6554afb52fde00f0a1;p=emacs.git Tweak previous change. --- diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 862a52e25d5..28cea385a9f 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -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]