From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: quit-window Date: Sun, 23 Oct 2011 20:58:52 +0200 Message-ID: <4EA463EC.8030707@gmx.at> References: <86mxcsvjsk.fsf@googlemail.com> <4EA3DC67.8050607@gmx.at> <87obx77tms.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319396344 23409 80.91.229.12 (23 Oct 2011 18:59:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2011 18:59:04 +0000 (UTC) Cc: Christoph Scholtes , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 23 20:59:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RI3G8-0001gG-6A for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2011 20:59:00 +0200 Original-Received: from localhost ([::1]:36292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI3G7-0004a6-In for ged-emacs-devel@m.gmane.org; Sun, 23 Oct 2011 14:58:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RI3G4-0004Zj-Ek for emacs-devel@gnu.org; Sun, 23 Oct 2011 14:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RI3G3-0001V9-A9 for emacs-devel@gnu.org; Sun, 23 Oct 2011 14:58:56 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:39340) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RI3G2-0001Uz-Qo for emacs-devel@gnu.org; Sun, 23 Oct 2011 14:58:55 -0400 Original-Received: (qmail invoked by alias); 23 Oct 2011 18:58:52 -0000 Original-Received: from 62-47-56-109.adsl.highway.telekom.at (EHLO [62.47.56.109]) [62.47.56.109] by mail.gmx.net (mp035) with SMTP; 23 Oct 2011 20:58:52 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/c9IJvux3cxL7NWkWkQyBPCUrVGo1H6xOiB2JVtE nHvHHgsuxZft80 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87obx77tms.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 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:145442 Archived-At: > BTW, what do you think about adding to window.el something like: > > (defun quit-window-kill-buffer () > "Quit WINDOW and kill its buffer." > (interactive) > (quit-window t)) > > The problem is that for some modes it's desirable to kill buffers as well > when quitting. Then it would be easier to put in .emacs: > > (define-key dired-mode-map "q" 'quit-window-kill-buffer) > > Or even better to add a new customizable variable with a list of modes > where `q' kills the buffer, e.g. `quit-window-kill-buffer-modes' > that could be customized to add modes like `dired-mode'. Is there any reason why one should not use C-x k here? martin