From: Dan Nicolaescu Date: Thu, 27 Mar 2008 22:15:54 +0000 (+0000) Subject: (emacs-lisp-mode-map): Fix predicate. X-Git-Tag: emacs-pretest-23.0.90~6850 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0bf12140f54ce67a43dafdb27b7c107e7c9ed1ee;p=emacs.git (emacs-lisp-mode-map): Fix predicate. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 97db7c25091..b939374d03e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-03-27 Dan Nicolaescu + + * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Fix predicate. + 2008-03-27 Stefan Monnier * vc-hooks.el (vc-before-save): Don't prevent saving the file. diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 29552a7dcd8..d264de6834f 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -281,7 +281,7 @@ (define-key map [menu-bar emacs-lisp] (cons "Emacs-Lisp" menu-map)) (define-key menu-map [eldoc] '(menu-item "Auto-Display Documentation Strings" eldoc-mode - :button (:toggle . eldoc-mode) + :button (:toggle . (bound-and-true-p eldoc-mode)) :help "Display the documentation string for the item under cursor")) (define-key menu-map [checkdoc] '(menu-item "Check Documentation Strings" checkdoc