changeset 69394:8255fc213e0f

(ispell-menu-map-needed) [ispell-message]: Be visible only if major mode is Mail Mode.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 11 Mar 2006 15:29:52 +0000
parents ebf37f0a455f
children 973779d570da
files lisp/textmodes/ispell.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el	Sat Mar 11 15:25:13 2006 +0000
+++ b/lisp/textmodes/ispell.el	Sat Mar 11 15:29:52 2006 +0000
@@ -1086,6 +1086,7 @@
 		    :help "Spell-check text in marked region"))
       (define-key ispell-menu-map [ispell-message]
 	'(menu-item "Spell-Check Message" ispell-message
+		    :visible (eq major-mode 'mail-mode)
 		    :help "Skip headers and included message text"))
       (define-key ispell-menu-map [ispell-buffer]
 	'(menu-item "Spell-Check Buffer" ispell-buffer