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: Thu, 27 Oct 2011 08:23:39 -0400 Message-ID: References: <8639eg8qm6.fsf@googlemail.com> <86aa8n6qbb.fsf@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319718236 16378 80.91.229.12 (27 Oct 2011 12:23:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 12:23:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 14:23:52 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 1RJOzv-0008Ja-Kk for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 14:23:51 +0200 Original-Received: from localhost ([::1]:58133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOzu-0005jk-Lr for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 08:23:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOzp-0005j1-O4 for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:23:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJOzl-0007nj-Gz for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:23:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:43649 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOzl-0007nI-4R for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:23:41 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0JACBMqU5MCrTo/2dsb2JhbABCqE2BD4EGgXIBAQVWIxALDiYSFBgNJL0OiH4EoUOERQ X-IronPort-AV: E=Sophos;i="4.69,413,1315195200"; d="scan'208";a="144742412" 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; 27 Oct 2011 08:23:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id ACB2E59208; Thu, 27 Oct 2011 08:23:39 -0400 (EDT) In-Reply-To: <86aa8n6qbb.fsf@googlemail.com> (Christoph Scholtes's message of "Wed, 26 Oct 2011 21:55:52 -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.183 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:145646 Archived-At: >> (global-set-key [remap quit-window] (lambda () (interactive) (quit-window 'kill))) > Thanks. I didn't know that you could remap command like that. However, > this fixes quit-window to always kill. I like to be able to bury it with > `C-u q'. Then use a different redefinition: (global-set-key [remap quit-window] (lambda () (interactive) (quit-window (not current-prefix-arg)))) Stefan