unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Changing occur-hook to occur-functions
@ 2005-07-02 18:40 Juanma Barranquero
  2005-07-02 19:01 ` Juanma Barranquero
  0 siblings, 1 reply; 15+ messages in thread
From: Juanma Barranquero @ 2005-07-02 18:40 UTC (permalink / raw)


I'd like to change `occur-hook' to `occur-functions', and pass it the
current occur buffer (which can be different of "*Occur*").

This is not an incompatible change, as `occur-hook' is not in 21.4.

-- 
                    /L/e/k/t/u


Index: lisp/replace.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/replace.el,v
retrieving revision 1.216
diff -r1.216 replace.el
721,722c721,723
< (defcustom occur-hook nil
<   "Hook run when `occur' is called."
---
> (defcustom occur-functions nil
>   "List of functions run when `occur' is called.
> Each function is passed one argument, the Occur mode buffer."
1052c1053
< 	(run-hooks 'occur-hook)))))
---
> 	(run-hook-with-args 'occur-functions occur-buf)))))

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-07-05 10:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-02 18:40 Changing occur-hook to occur-functions Juanma Barranquero
2005-07-02 19:01 ` Juanma Barranquero
2005-07-03 20:42   ` Richard M. Stallman
2005-07-03 21:33     ` Juanma Barranquero
2005-07-04  4:02     ` Juanma Barranquero
2005-07-04 16:48       ` Richard M. Stallman
2005-07-04 22:39         ` Juanma Barranquero
2005-07-04  0:29   ` Juri Linkov
2005-07-04  8:00     ` Juanma Barranquero
2005-07-05  4:35       ` Richard M. Stallman
2005-07-05  8:32         ` Juanma Barranquero
2005-07-05  9:29           ` Lute Kamstra
2005-07-05  5:27       ` Juri Linkov
2005-07-05 10:15         ` Juanma Barranquero
2005-07-04  0:29   ` Juri Linkov

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).