bug-gnu-emacs
[Top][All Lists]
Advanced

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

[patch] 21.2 finder.el - run finder-mode-hook


From: Jari Aalto+mail.linux
Subject: [patch] 21.2 finder.el - run finder-mode-hook
Date: Sun, 14 Sep 2003 20:35:58 +0300
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/20.7 (windows-nt) (i386-*-nt5.0.2195)

A mode should run MODE-HOOK. Later we can add font lock to 
M-x finder-commentary. The patch if from Cygwin Emacs, which
isn't updated to 21.3 yet.

Jari

2003-09-14  Jari Aalto  <address@hidden>
        
        * finder.el (finder-mode-hook): New variable.
        (finder-mode): Run hook finder-mode-hook

===================================================================
RCS file: RCS/finder.el,v
retrieving revision 1.1
diff -bwu -r1.1 finder.el
--- finder.el   2003-09-14 18:54:41+03  1.1
+++ finder.el   2003-09-14 18:56:16+03
@@ -41,6 +41,9 @@
 (require 'lisp-mnt)
 (require 'finder-inf)
 
+(defvar finder-mode-hook nil
+  "*Hook run when function `finder-mode' is called.")
+
 ;; Local variable in finder buffer.
 (defvar finder-headmark)
 
@@ -335,7 +338,8 @@
   (setq mode-name "Finder")
   (setq major-mode 'finder-mode)
   (make-local-variable 'finder-headmark)
-  (setq finder-headmark nil))
+  (setq finder-headmark nil)
+  (run-hooks 'finder-mode-hook))
 
 (defun finder-summary ()
   "Summarize basic Finder commands."


-- 
http://tiny-tools.sourceforge.net/
Swatch @time   http://www.mir.com.my/iTime/itime.htm
               http://www.ryanthiessen.com/swatch/resources.htm
Use Licenses!  http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences   http://www.opensource.org/licenses/




reply via email to

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