summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-01-20 19:18:54 +0200
committerEli Zaretskii <eliz@gnu.org>2022-01-20 19:18:54 +0200
commitb01604b362755d02a05c65df4fca321ec84007d9 (patch)
tree92bbdf5a36daba6e34496723e31c85058823300f /src/buffer.c
parentcce813a4e70324956d6546102e26dbb312319bbd (diff)
Update documentation of 'clone-indirect-buffer-hook'
* doc/emacs/buffers.texi (Indirect Buffers): * src/buffer.c (syms_of_buffer) <clone-indirect-buffer-hook>: Update the documentation of 'clone-indirect-buffer-hook' due the recent changes. * etc/NEWS: Mention the change in where the hook is run. * lisp/face-remap.el (face-attrs--make-indirect-safe): Doc fix.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index f5f7127a638..0bdad086ddd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -6399,7 +6399,10 @@ This is the default. If nil, auto-save file deletion is inhibited. */);
delete_auto_save_files = 1;
DEFVAR_LISP ("clone-indirect-buffer-hook", Vclone_indirect_buffer_hook,
- doc: /* Normal hook to run in the new buffer at the end of `clone-indirect-buffer'. */);
+ doc: /* Normal hook to run in the new buffer at the end of `make-indirect-buffer'.
+
+Since `clone-indirect-buffer' calls `make-indirect-buffer', this hook
+will run for `clone-indirect-buffer' calls as well. */);
Vclone_indirect_buffer_hook = Qnil;
defsubr (&Sbuffer_live_p);