GNU bug report logs - #8151
add flyspell-prog-mode initiation example to Info

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Wed, 2 Mar 2011 12:25:01 UTC

Severity: minor

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: add flyspell-prog-mode initiation example to Info
Date: Wed, 02 Mar 2011 20:22:54 +0800
In (info "(emacs) Spelling")

   Type `M-x flyspell-mode' to enable or disable this mode in the
   current buffer. To enable `flyspell-mode' in all text mode buffers,
   add `turn-on-flyspell' to `text-mode-hook'. ...

      Flyspell Prog mode works just like ordinary Flyspell mode, except
   that it only checks words in comments and string constants.  This
   feature is useful for editing programs.  Type `M-x flyspell-prog-mode'
   to enable or disable this mode in the current buffer.

OK, but the second paragraph doesn't say what hook to turn
flyspell-prog-mode on for all programs!

Or mention how to turn it on one by one...

Well it turns out one needs to use a totally different method to turn on
flyspell-prog-mode, e.g.,
(add-hook 'perl-mode-hook
  (function (lambda ()(flyspell-prog-mode))))
And it turns out there is no way to turn off flyspell-prog-mode... OK,
probably just turn off flyspell-mode.

Also in the mode line there is no distinction of the two types of
flyspell-mode... probably because no big deal.




This bug report was last modified 14 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.