From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: Re: Advising quit-window Date: Wed, 26 Oct 2011 21:55:52 -0600 Message-ID: <86aa8n6qbb.fsf@googlemail.com> References: <8639eg8qm6.fsf@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319687769 18014 80.91.229.12 (27 Oct 2011 03:56:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 03:56:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 05:56:03 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 1RJH4V-0004Q3-3s for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 05:56:03 +0200 Original-Received: from localhost ([::1]:37908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJH4U-0001Lt-Ox for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2011 23:56:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJH4S-0001Ll-64 for emacs-devel@gnu.org; Wed, 26 Oct 2011 23:56:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJH4R-0006jg-6t for emacs-devel@gnu.org; Wed, 26 Oct 2011 23:56:00 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:54335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJH4R-0006jZ-2k for emacs-devel@gnu.org; Wed, 26 Oct 2011 23:55:59 -0400 Original-Received: by ywa17 with SMTP id 17so2653898ywa.0 for ; Wed, 26 Oct 2011 20:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=n2pz7EutIEK2B38oQMzW2HGoROWFqMoLOPg6J/jEMkQ=; b=Rjepmb0INx/ul3hJjviU8TcA6TX7aAou5pkCNJFWfHYBetoPha0ogdBwJx6OKBk+PD 43wQAddd9KHpLbp9JrqlzvMjuEPvFsANQQ9LZQv+4oLaqMUFHox/snxEGNpd6x4mSrC7 I5FtrNhrXbTTbGRjULj2IkzHCVrsgbVSqNhqc= Original-Received: by 10.150.237.5 with SMTP id k5mr15333073ybh.4.1319687758154; Wed, 26 Oct 2011 20:55:58 -0700 (PDT) Original-Received: from MARVIN (71-212-154-245.hlrn.qwest.net. [71.212.154.245]) by mx.google.com with ESMTPS id x3sm11217397anl.6.2011.10.26.20.55.56 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Oct 2011 20:55:57 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 26 Oct 2011 09:54:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 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:145619 Archived-At: Stefan Monnier writes: >> ;; 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))) 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'.