Subject: bug#5532: closed (Re: 23.1.92; have text-mode-hook, need "program-mode-hook")

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 07 Oct 2010 12:24:02 +0000

Your bug report

#5532: 23.1.92; have text-mode-hook, need "program-mode-hook"

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
5532: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5532
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 23.1.92; have text-mode-hook, need "program-mode-hook"
From: Stefan Monnier <[email-masked]>
To: Tom Tromey <[email-masked]>
Date: Thu, 07 Oct 2010 12:04:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> Most programming modes are derived from `prog-mode'.
> So, you can use prog-mode-hook.

Indeed, prog-mode now provides the desired feature.

        Stefan

Subject: 23.1.92; have text-mode-hook, need "program-mode-hook"
From: [email-masked]
To: [email-masked]
Date: Sat, 06 Feb 2010 02:40:28 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

There is text-mode-hook, so one can call flyspell-mode,
But there is no program-mode-hook, so one can call flyspell-prog-mode.
One instead must call flyspell-prog-mode once in perl-mode-hook, once in
sh-mode-hook, once in ...

See also
(info "(emacs) Text Mode")
(info "(emacs) Program Modes").