GNU bug report logs - #5532
23.1.92; have text-mode-hook, need "program-mode-hook"

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Fri, 5 Feb 2010 20:07:02 UTC

Severity: wishlist

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: jidanni <at> jidanni.org
Subject: bug#5532: closed (Re: 23.1.92; have text-mode-hook, need
 "program-mode-hook")
Date: Thu, 07 Oct 2010 12:24:02 +0000
[Message part 1 (text/plain, inline)]
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 5532 <at> debbugs.gnu.org.

-- 
5532: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5532
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tom Tromey <tromey <at> redhat.com>
Subject: Re: 23.1.92; have text-mode-hook, need "program-mode-hook"
Date: Thu, 07 Oct 2010 12:04:33 +0200
> Most programming modes are derived from `prog-mode'.
> So, you can use prog-mode-hook.

Indeed, prog-mode now provides the desired feature.


        Stefan




[Message part 3 (message/rfc822, inline)]
From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1.92; have text-mode-hook, need "program-mode-hook"
Date: Sat, 06 Feb 2010 02:40:28 +0800
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").




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

Previous Next


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