emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/simple.el,v


From: Karl Fogel
Subject: [Emacs-diffs] Changes to emacs/lisp/simple.el,v
Date: Thu, 08 Feb 2007 06:31:30 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Karl Fogel <kfogel>     07/02/08 06:31:29

Index: simple.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/simple.el,v
retrieving revision 1.843
retrieving revision 1.844
diff -u -b -r1.843 -r1.844
--- simple.el   6 Feb 2007 09:35:04 -0000       1.843
+++ simple.el   8 Feb 2007 06:31:28 -0000       1.844
@@ -382,13 +382,19 @@
 
 ;;;
 
+(defcustom fundamental-mode-hook nil
+  "Normal hook run for buffers not specialized for anything in particular."
+  :type 'hook
+  ;; No group is a perfect fit, but this is probably the closest.
+  :group 'editing-basics)
+
 (defun fundamental-mode ()
   "Major mode not specialized for anything in particular.
-Other major modes are defined by comparison with this one."
+Other major modes are defined by comparison with this one.
+Entry to this mode runs the normal hook `fundamental-mode-hook'."
   (interactive)
   (kill-all-local-variables)
-  (unless delay-mode-hooks
-    (run-hooks 'after-change-major-mode-hook)))
+  (run-mode-hooks 'fundamental-mode-hook))
 
 ;; Making and deleting lines.
 




reply via email to

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