bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45072: 28.0.50; Emacs switches other buffer back uncontrollably, if


From: Stefan Monnier
Subject: bug#45072: 28.0.50; Emacs switches other buffer back uncontrollably, if other window's buffer is changed by user during minibuffer editing
Date: Mon, 19 Apr 2021 09:52:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> But 'minibuffer-hide-completions' uses 'bury-buffer' which would delete
>> the completions window unconditionally even when it was only reused for
>> showing completions.  IMO 'bury-buffer' is practically always the wrong
>> choice for Lisp functions to call.
>
> Maybe 'quit-window' is better?

Part of the problem is one of documentation: it's hard to know which one
to call just by reading the docstrings.

Also the above quoted text sounds counter intuitive: "bury buffer"
sounds like it's mostly focused on hiding the *buffer*, potentially
hiding the window along the way if necessary, whereas "quit window"
sounds like it's mostly going to eliminate the *window*.

Of course, there's also the fact that `quit-window` is fairly new
(introduced in Emacs-24), whereas `bury-buffer` has been with us forever.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]