unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* [patch] 21.2 finder.el - run finder-mode-hook
@ 2003-09-14 17:35 Jari Aalto+mail.linux
  0 siblings, 0 replies; only message in thread
From: Jari Aalto+mail.linux @ 2003-09-14 17:35 UTC (permalink / raw)



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  <jari.aalto@poboxes.com>
	
	* 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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-14 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-14 17:35 [patch] 21.2 finder.el - run finder-mode-hook Jari Aalto+mail.linux

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).