[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3018: clone-indirect-buffer-hook should be make-indirect-buffer-hook
From: |
Stefan Monnier |
Subject: |
bug#3018: clone-indirect-buffer-hook should be make-indirect-buffer-hook |
Date: |
Fri, 17 Apr 2009 16:26:36 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
> IMHO a bug in Emacs 23 because if there is such a hook, then it should
> be used by both of them - at ist best only by make-indirect-buffer
> (because this command is called by clone-indirect-buffer) and then the
> new hook should be named make-indirect-buffer-hook...
If `make-indirect-buffer' is called with a nil argument for `clone',
then it shouldn't run any buffer-local part of
clone-indirect-buffer-hook (which is typically used by major modes).
So maybe you're right, but as long as nobody uses the global part of
clone-indirect-buffer-hook, or calls `make-indirect-buffer' with
a non-nil `clone' argument (rather than calling clone-indirect-buffer),
it shouldn't matter.
Care to explain the context in which you bumped into this? It might
help us understand what needs to be done.
Stefan
bug#3018: clone-indirect-buffer-hook should be make-indirect-buffer-hook, Lennart Borgman, 2009/04/17