all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Changing occur-hook to occur-functions
Date: Mon, 4 Jul 2005 10:00:44 +0200	[thread overview]
Message-ID: <f7ccd24b050704010072790cbf@mail.gmail.com> (raw)
In-Reply-To: <874qbbnrzy.fsf@jurta.org>

On 7/4/05, Juri Linkov <juri@jurta.org> wrote:

> Why do you think it is a mistake?  It doesn't work with `occur-mode-hook'.

Neither does with `occur-hook'. You have to add

 (lambda () (occur-rename-buffer t))

to `occur-mode-hook' for it to work.  That's why I proposed to add a
new parameter INTERACTIVE-P to `occur-rename-buffer' so it can be just
dropped onto the hook.

Moreover, originally the `occur-rename-buffer' docstring talked about
`occur-mode-hook'. I (mistakenly) changed it a while back when I
renamed `occur-mode-hook' to `occur-hook' and moved it from
`occur-mode' to `occur-1'. Almost immediately I realized
`occur-mode-hook' was still needed and I re-added it, but I didn't
change back the docstring for `occur-rename-buffer'.

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

  reply	other threads:[~2005-07-04  8:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=f7ccd24b050704010072790cbf@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.