unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: 12311@debbugs.gnu.org
Subject: bug#12311: (special-mode-map): Delete binding for `z'.
Date: Mon, 03 Sep 2012 16:09:12 +0800	[thread overview]
Message-ID: <87oblny1cn.fsf@gnu.org> (raw)
In-Reply-To: <87fw712e87.fsf@gnu.org> (Sam Steingold's message of "Sun, 02 Sep 2012 01:19:52 -0400")

Sam Steingold <sds@gnu.org> writes:

> because 'q' will eventually start showing old *Help* buffers.
> because 'q' deletes the window which I want to keep.

The first point seems irrelevant; `q' should only show old buffers if
there is nothing better to show.

As for the second, we could add a defcustom to prevent `quit-window'
from deleting windows; would that be suitable for your usage?

> I don't think special-mode buffers are "precious" - they are easily
> restored, so killing them accidentally should not be a problem.
> Apparently others disagree.

One example of a special buffer which may be annoying to accidentally
delete is a *Packages* buffer, whose contents are fetched over a
network.  Similarly with a non-DVCS VC-Dir buffer.  But these are
personal value judgements, a.k.a. bikeshedding.  There are two simple
solutions:

  (define-key special-mode-map "z" ...)

or

  C-x k RET

Emacs should strive to present a consistent user interface, so it's good
for special buffers to share as many keybindings as possible, when it
comes to basic operations like dismissal.  That's why we've worked hard
to make these buffers use `q' (`quit-window').  In that context, it's
unacceptable to provide `z' for buffer-killing in some special buffers
but not others, for such a fuzzy reason as "precious" vs "non-precious".





      parent reply	other threads:[~2012-09-03  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87oblp2nfr.fsf@gnu.org>
     [not found] ` <363C856A8EDB4545897D760AD952E828@us.oracle.com>
2012-09-02  5:19   ` bug#12311: (special-mode-map): Delete binding for `z' Sam Steingold
     [not found]   ` <87fw712e87.fsf@gnu.org>
2012-09-02 13:39     ` Drew Adams
2012-09-03  8:09     ` Chong Yidong [this message]

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=87oblny1cn.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=12311@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).