* Spell-Check Message menu item
@ 2006-02-27 14:01 David Reitter
2006-03-08 14:55 ` Agustin Martin
0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2006-02-27 14:01 UTC (permalink / raw)
The "Spell-Check Message" menu item is enabled all the time - even
when no message is being edited. Adding a :enabled or :visible here
would improve usability.
from ispell.el:
(define-key ispell-menu-map [ispell-message]
'(menu-item "Spell-Check Message" ispell-message
:help "Skip headers and included message text"))
Also, the whole menu is always visible - even when no frame is
visible at all. Don't forget that menu bars can exist outside of
frames.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Spell-Check Message menu item
2006-02-27 14:01 Spell-Check Message menu item David Reitter
@ 2006-03-08 14:55 ` Agustin Martin
0 siblings, 0 replies; 2+ messages in thread
From: Agustin Martin @ 2006-03-08 14:55 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 709 bytes --]
On Mon, Feb 27, 2006 at 02:01:50PM +0000, David Reitter wrote:
> The "Spell-Check Message" menu item is enabled all the time - even
> when no message is being edited. Adding a :enabled or :visible here
> would improve usability.
>
> from ispell.el:
>
> (define-key ispell-menu-map [ispell-message]
> '(menu-item "Spell-Check Message" ispell-message
> :help "Skip headers and included message text"))
Somethink like attached patch seems to work.
> Also, the whole menu is always visible - even when no frame is
> visible at all. Don't forget that menu bars can exist outside of
> frames.
I am not an expert on this, how this can be done? With an example I might
try it.
--
Agustin
[-- Attachment #2: ispell.el_hide-spellcheck-message.diff --]
[-- Type: text/plain, Size: 480 bytes --]
--- ispell.el.orig 2006-03-08 10:53:00.000000000 +0100
+++ ispell.el 2006-03-08 15:53:42.000000000 +0100
@@ -1090,6 +1090,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
[-- Attachment #3: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-08 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 14:01 Spell-Check Message menu item David Reitter
2006-03-08 14:55 ` Agustin Martin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.