changeset 63166:5ccb3fdd9847

(ispell-menu-map-needed): flyspell-mode could be void.
author Lute Kamstra <lute@gnu.org>
date Thu, 09 Jun 2005 12:11:54 +0000
parents 669dc7032e9d
children 9865ce852f00
files lisp/textmodes/ispell.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el	Thu Jun 09 10:39:02 2005 +0000
+++ b/lisp/textmodes/ispell.el	Thu Jun 09 12:11:54 2005 +0000
@@ -942,7 +942,7 @@
 	'(menu-item "Automatic spell checking (Flyspell)"
 		    flyspell-mode
 		    :help "Check spelling while you edit the text"
-		    :button (:toggle . flyspell-mode)))
+		    :button (:toggle . (bound-and-true-p flyspell-mode))))
       (define-key ispell-menu-map [ispell-complete-word]
 	'(menu-item "Complete Word" ispell-complete-word
 		    :help "Complete word at cursor using dictionary"))