GNU bug report logs - #45072
28.0.50; Emacs switches other buffer back uncontrollably, if other window's buffer is changed by user during minibuffer editing

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Sun, 6 Dec 2020 14:09:01 UTC

Severity: minor

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #149 received at 45072 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 45072 <at> debbugs.gnu.org, larsi <at> gnus.org,
 Jean Louis <bugs <at> gnu.support>, Juri Linkov <juri <at> linkov.net>
Subject: Re: 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 19:11:49 +0200
>> That's why Lisp code should call `quit-restore-window' instead of
>> `quit-window'.
>
> I suspect the docstring of the other functions should point to it if we
> want this to have any uptake.

I would have given up on that idea at the latest when `quit-window-hook'
was added.

> Maybe we should begin with adding
>
>      (declare (interactive-only quit-restore-window))
>
> to `quit-window` (adding it to `bury-buffer` risks us drowning under
> a deluge of warnings)?

At the time people call `quit-window' and/or `bury-buffer' they are only
occupied with how to get rid of one of these ASAP.  When they find out
that they overdid things, they usually try to restore some older window
configuration.  These habits will never die.

martin




This bug report was last modified 3 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.