aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Fogel2007-02-08 06:31:28 +0000
committerKarl Fogel2007-02-08 06:31:28 +0000
commit3faea23ac18c8921bb4f083ca9bc039e91aec3e5 (patch)
treee3e887fbad4cacd58eaa305d960729677f7878a2
parentbf3658255bf2d01c8cef63a5f141e82514a55242 (diff)
downloademacs-3faea23ac18c8921bb4f083ca9bc039e91aec3e5.tar.gz
emacs-3faea23ac18c8921bb4f083ca9bc039e91aec3e5.zip
(fundamental-mode-hook): Declare new hook.
(fundamental-mode): Run the new dedicated hook, and don't run after-change-major-mode-hooks manually anymore.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/simple.el12
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 41b1295ef37..8d7615e325b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-02-08 Karl Fogel <kfogel@red-bean.com>
2
3 * emacs/lisp/simple.el (fundamental-mode-hook): Declare new hook.
4 (fundamental-mode): Run the new dedicated hook, and don't run
5 after-change-major-mode-hooks manually anymore.
6
12007-02-07 Stefan Monnier <monnier@iro.umontreal.ca> 72007-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * vc-svn.el (vc-svn-merge-news): Understand the new format with two 9 * vc-svn.el (vc-svn-merge-news): Understand the new format with two
diff --git a/lisp/simple.el b/lisp/simple.el
index 6f4f5eb4073..dcd70b5b308 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -382,13 +382,19 @@ location."
382 382
383;;; 383;;;
384 384
385(defcustom fundamental-mode-hook nil
386 "Normal hook run for buffers not specialized for anything in particular."
387 :type 'hook
388 ;; No group is a perfect fit, but this is probably the closest.
389 :group 'editing-basics)
390
385(defun fundamental-mode () 391(defun fundamental-mode ()
386 "Major mode not specialized for anything in particular. 392 "Major mode not specialized for anything in particular.
387Other major modes are defined by comparison with this one." 393Other major modes are defined by comparison with this one.
394Entry to this mode runs the normal hook `fundamental-mode-hook'."
388 (interactive) 395 (interactive)
389 (kill-all-local-variables) 396 (kill-all-local-variables)
390 (unless delay-mode-hooks 397 (run-mode-hooks 'fundamental-mode-hook))
391 (run-hooks 'after-change-major-mode-hook)))
392 398
393;; Making and deleting lines. 399;; Making and deleting lines.
394 400