From 0bf12140f54ce67a43dafdb27b7c107e7c9ed1ee Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Thu, 27 Mar 2008 22:15:54 +0000 Subject: [PATCH] (emacs-lisp-mode-map): Fix predicate. --- lisp/ChangeLog | 4 ++++ lisp/emacs-lisp/lisp-mode.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5