all messages for Emacs-related lists mirrored at yhetil.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: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-02  2:00 (special-mode-map): Delete binding for `z' Sam Steingold
2012-09-02  2:26 ` Chong Yidong
2012-09-02  2:38 ` Drew Adams
2012-09-02  5:19   ` Sam Steingold
2012-09-02 13:39     ` bug#12311: " Drew Adams
2012-09-03  8:09     ` Chong Yidong [this message]
2012-09-02  5:19   ` Sam Steingold

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

* 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.