all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: message@MailAndNews.com (Jari Aalto+mail.linux)
Subject: [patch] 21.2 finder.el - run finder-mode-hook
Date: Sun, 14 Sep 2003 20:35:58 +0300	[thread overview]
Message-ID: <n0d7clxd.fsf@blue.sea.net> (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/

                 reply	other threads:[~2003-09-14 17:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=n0d7clxd.fsf@blue.sea.net \
    --to=message@mailandnews.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.