emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] text-mode-hook-identify should be part of the standard value


From: Per Abrahamsen
Subject: Re: [PATCH] text-mode-hook-identify should be part of the standard value for text-mode-hook
Date: Sat, 09 Feb 2002 12:38:22 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu)

Richard Stallman <address@hidden> writes:

>     I suspect it was done with a hook because text-mode-hook is also
>     called from modes not derived from text-mode.
>
> That seems very unreliable.  Which are they, and why?

I remember it as being recommended practice, before
define-derived-mode existed.

A grep run-hooks.*text-mode-hook in the Emacs CVS revealed the
following modes that call text-mode-hook:

  bookmark-read-annotation-mode, bookmark-edit-annotation-mode,
  gnus-article-edit-mode, message-mode (fixed in Gnus CVS), the old
  outline-mode, and news-reply-mode (from rnewspost... does rnews
  really still exists?).

>From unbundled packages, I know the various AUC TeX modes also call
text-mode-hook explicitly, they have never been converted to use
'define-derived-mode'.  I suspect other older unbundled packages for
editining "mostly plain text" do the same.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]