]> git.eshelyaron.com Git - emacs.git/commit
For minibuffer windows record minibuffers only (Bug#72487)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 11 Sep 2024 08:36:14 +0000 (10:36 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:21:58 +0000 (22:21 +0200)
commit5b0fc59bc702287c8ba28a5823d4b6ff1a9029c8
tree0585d31fa369cd0db5266b341d66ce0d5152339b
parent38dc6773b86bd1ed4f33f62d84e856209b09023d
For minibuffer windows record minibuffers only (Bug#72487)

* src/minibuf.c (zip_minibuffer_stacks): Use wset type
functions.  Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' to handle all sorts of buffers
shown in minibuffer windows in a uniform way.
(read_minibuf): Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' for same reason as previous.
* lisp/calculator.el (calculator-update-display)
(calculator-save-and-quit): Make sure calculator buffer is live
before operating on it.
* lisp/window.el (record-window-buffer): Handle case where
WINDOW is a minibuffer window: Unconditionally remove WINDOW's
buffer from WINDOW's list of previous buffers and push it if
and only if it is a live minibuffer (Bug#72487).  Do not run
'buffer-list-update-hook' if WINDOW is a minibuffer window.
(push-window-buffer-onto-prev): Make it an alias of
'record-window-buffer' so it will run the latter's checks.
(replace-buffer-in-windows): Handle minibuffer windows and
rewrite doc-string accordingly.
* doc/lispref/windows.texi (Buffers and Windows): Explain
handling of minibuffer windows in 'replace-buffer-in-windows'.

(cherry picked from commit fc3a7f45292b9a7be95fdefd24fedb7e8f564d1c)
doc/lispref/windows.texi
lisp/window.el
src/minibuf.c
src/window.c