changeset 57149:319d48feb1e9

*** empty log message ***
author Luc Teirlinck <teirllm@auburn.edu>
date Sun, 19 Sep 2004 01:11:35 +0000
parents 9bb86b9e678e
children e8b02be78ea7
files etc/NEWS lisp/ChangeLog
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Sun Sep 19 01:08:16 2004 +0000
+++ b/etc/NEWS	Sun Sep 19 01:11:35 2004 +0000
@@ -2242,6 +2242,10 @@
 
 * Lisp Changes in Emacs 21.4
 
+** Major mode functions now run the new normal hook
+`after-change-major-mode-hook', at the end, just before the mode
+dependent hooks.
+
 +++
 ** `auto-save-file-format' has been renamed to
 `buffer-auto-save-file-format' and made into a permanent local.
--- a/lisp/ChangeLog	Sun Sep 19 01:08:16 2004 +0000
+++ b/lisp/ChangeLog	Sun Sep 19 01:11:35 2004 +0000
@@ -1,3 +1,19 @@
+2004-09-18  Luc Teirlinck  <teirllm@auburn.edu>
+
+	* textmodes/enriched.el (enriched-rerun-flag): New variable.
+	(enriched-before-change-major-mode): New function.
+	Add it to `change-major-mode-hook'.
+	(enriched-after-change-major-mode): New function.
+	Add it to `after-change-major-mode-hook'.
+	(enriched-mode): Make it work correctly if called from
+	`after-change-major-mode-hook'.
+	No longer set `indent-line-function'.
+
+	* simple.el (fundamental-mode): Run `after-change-major-mode-hook'.
+
+	* subr.el (after-change-major-mode-hook): New variable.
+	(run-mode-hooks): Implement it.
+
 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* battery.el (battery-linux-proc-apm): Use string-to-number.