unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jose A. Ortega Ruiz" <jao@gnu.org>
To: 45625@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	[thread overview]
Message-ID: <87im8bwc1l.fsf@gnus.jao.io> (raw)
In-Reply-To: <87sg7if782.5.fsf@jidanni.org>

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)






  reply	other threads:[~2021-01-05 17:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87bldwq0ko.fsf@gnus.org>
2021-01-03 14:03 ` bug#45625: C-p (previous-line) now wipes out windows, if misaimed 積丹尼 Dan Jacobson
2021-01-03 17:04   ` Philipp Stephani
2021-01-04  3:28     ` 積丹尼 Dan Jacobson
2021-01-04  5:16     ` Richard Stallman
2021-01-04  5:27       ` 積丹尼 Dan Jacobson
2021-01-04  6:32       ` Jose A. Ortega Ruiz
2021-01-05  6:37         ` Richard Stallman
2021-01-05 17:04           ` Jose A. Ortega Ruiz [this message]
2021-01-10 15:21             ` bug#45625: ESC ESC ESC deletes other windows Lars Ingebrigtsen
     [not found]   ` <handler.45625.C.16102921303076.notifdonectrl.0@debbugs.gnu.org>
2021-01-11 11:24     ` bug#45625: ESC ESC ESC 積丹尼 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im8bwc1l.fsf@gnus.jao.io \
    --to=jao@gnu.org \
    --cc=45625@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).