diff options
author | Martin Rudalics <rudalics@gmx.at> | 2019-03-08 19:10:27 +0100 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2019-03-08 19:10:27 +0100 |
commit | 464ee80eac364e5febca88a7ded46cdd9c3a4f10 (patch) | |
tree | 8873655aa7c4b7ac012ae05aae0310327c75be0d /doc | |
parent | 60b5c1090d4b378146597418627049ae574856e6 (diff) | |
download | emacs-464ee80eac364e5febca88a7ded46cdd9c3a4f10.tar.gz |
Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)
* src/buffer.c (Vbuffer_list_update_hook):
* doc/lispref/buffers.texi (Buffer List): Warn against
recursive invocations of 'buffer-list-update-hook' (Bug#34765).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/buffers.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index d97a095f686..6ad1fb1824a 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi @@ -940,6 +940,10 @@ This is a normal hook run whenever the buffer list changes. Functions (@pxref{Creating Buffers}), @code{rename-buffer} (@pxref{Buffer Names}), @code{kill-buffer} (@pxref{Killing Buffers}), @code{bury-buffer} (see above) and @code{select-window} (@pxref{Selecting Windows}). + +Functions run by this hook should avoid calling @code{select-window} +with a nil @var{norecord} argument or @code{with-temp-buffer} since +either may lead to infinite recursion. @end defvar @node Creating Buffers |