From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: (special-mode-map): Delete binding for `z'. Date: Sun, 02 Sep 2012 01:19:52 -0400 Organization: disorganization Message-ID: <87fw712e87.fsf@gnu.org> References: <87oblp2nfr.fsf@gnu.org> <363C856A8EDB4545897D760AD952E828@us.oracle.com> Reply-To: 12311@debbugs.gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346563223 4371 80.91.229.3 (2 Sep 2012 05:20:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2012 05:20:23 +0000 (UTC) Cc: 12311@debbugs.gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 02 07:20:24 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T82bc-0004xj-Pz for ged-emacs-devel@m.gmane.org; Sun, 02 Sep 2012 07:20:20 +0200 Original-Received: from localhost ([::1]:46810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T82ba-0003Sc-3E for ged-emacs-devel@m.gmane.org; Sun, 02 Sep 2012 01:20:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T82bW-0003SQ-Rh for emacs-devel@gnu.org; Sun, 02 Sep 2012 01:20:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T82bV-0003cu-IW for emacs-devel@gnu.org; Sun, 02 Sep 2012 01:20:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T82bV-0003b5-99 for emacs-devel@gnu.org; Sun, 02 Sep 2012 01:20:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T82bQ-0004jn-Dy for emacs-devel@gnu.org; Sun, 02 Sep 2012 07:20:08 +0200 Original-Received: from ool-43501bc4.dyn.optonline.net ([67.80.27.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Sep 2012 07:20:08 +0200 Original-Received: from sds by ool-43501bc4.dyn.optonline.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Sep 2012 07:20:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ool-43501bc4.dyn.optonline.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Mail-Followup-To: 12311@debbugs.gnu.org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:ixE/3IWciru2xKhmNZ4fOKEdm+U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152945 Archived-At: > * Drew Adams [2012-09-01 19:38:28 -0700]: > >> I use this all the time in buffers like *Help*, > > Why bother to kill *Help*? Why do that rather than `q'? because 'q' will eventually start showing old *Help* buffers. because 'q' deletes the window which I want to keep. >> *Dired* &c. What am I supposed to use instead? C-u q? > > Sure, why not? Or `q' if you don't need to kill it. because C-u q is two keystrokes; quite often I keep hitting 'z' until I get to a buffer where z self-inserts. > Or `C-x v' if you want to replace it. C-x v is the vc prefix for me. > You want to kill Dired but you don't want to use `C-u q'. > OK, so bind `z' to killing once again if you want to. the question is whether this is a generally useful binding. I think it is. > Or is it about other special-mode buffers? That's the useful question, to me. > I would say forget about *Help* (which doesn't need to be killed) and Dired > (which you sometimes don't want to kill). > > But are there special-mode buffers where `z' killing the buffer is really > useful? If so, then maybe the fix was too heavy-handed. 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. >> How is a ding more valuable than a useful behavior? > > Killing the buffer is not the only or the most useful behavior `z' > could have in Dired. Dired is a rich mode with lots of keys already > taken and with plenty of commands that could be bound to keys. So bind it in dired mode. The change affects all the other special modes! -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.childpsy.net/ http://dhimmi.com http://truepeace.org http://think-israel.org http://pmw.org.il http://mideasttruth.com Do the arithmetic or be doomed to talk nonsense. --John McCarthy