From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Advising quit-window Date: Wed, 26 Oct 2011 09:54:50 -0400 Message-ID: References: <8639eg8qm6.fsf@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319637303 927 80.91.229.12 (26 Oct 2011 13:55:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2011 13:55:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 15:55: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 1RJ3wY-0006iK-B4 for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2011 15:54:58 +0200 Original-Received: from localhost ([::1]:40672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ3wX-0002DR-RA for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2011 09:54:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ3wS-0002DA-Ei for emacs-devel@gnu.org; Wed, 26 Oct 2011 09:54:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ3wR-0002iw-Cd for emacs-devel@gnu.org; Wed, 26 Oct 2011 09:54:52 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:33954 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ3wR-0002ir-7e for emacs-devel@gnu.org; Wed, 26 Oct 2011 09:54:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcSAOEQqE5MCrTo/2dsb2JhbABCqC8BgQ6BBoFuAQEFViMQCw4mEhQYDSS9HohqBKFAhEU X-IronPort-AV: E=Sophos;i="4.69,409,1315195200"; d="scan'208";a="144551612" Original-Received: from 76-10-180-232.dsl.teksavvy.com (HELO pastel.home) ([76.10.180.232]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 26 Oct 2011 09:54:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4A1F058BBC; Wed, 26 Oct 2011 09:54:50 -0400 (EDT) In-Reply-To: <8639eg8qm6.fsf@googlemail.com> (Christoph Scholtes's message of "Tue, 25 Oct 2011 19:54:09 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:145571 Archived-At: > ;; Advise quit-window to kill buffer instead of burying it > (defadvice quit-window (before advise-quit-window activate) > (ad-set-arg 0 (not (ad-get-arg 0)))) You can also do (global-set-key [remap quit-window] (lambda () (interactive) (quit-window 'kill))) -- Stefan