GNU bug report logs - #45625
ESC ESC ESC deletes other windows

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 3 Jan 2021 14:41:01 UTC

Severity: wishlist

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Jose A. Ortega Ruiz" <jao <at> gnu.org>
To: 45625 <at> debbugs.gnu.org
Subject: bug#45625: C-p (previous-line) now wipes out windows, if misaimed
Date: Tue, 05 Jan 2021 17:04:06 +0000
On Tue, Jan 05 2021, Richard Stallman wrote:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>   > > Jidanni, we could add an option to tell ESC ESC ESC not to mess with
>   > > the window layout, for users who do know the C-x 1 command.
>
>   > FWIW, i would certainly make use or that option (the triple C-[ scenario
>   > has happened to me many times, and i learned about winner-undo just to
>   > be able to revert quickly its effects).
>
> Want to write a patch to create the option, with the default
> being the current behavior?

i just took a look, and there is already a variable,
buffer-quit-function, to set up a function to call instead of
delete-other-windows.  i suspect it was introduced with something like
addressing this problem in mind (i think it's not used anywhere else).

for instance, just setting

    (setq buffer-quit-function (lambda () t))

fixes the issue for me.

jao
-- 
I have lived in this world just long enough to look carefully the
second time into things that I am most certain of the first
time. -Josh Billings, columnist and humorist (21 Apr 1818-1885)





This bug report was last modified 4 years and 132 days ago.

Previous Next


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