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: Tue, 25 Oct 2011 20:52:22 -0600 Message-ID: <86mxco79cp.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 1319597563 6718 80.91.229.12 (26 Oct 2011 02:52:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2011 02:52:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 04:52:39 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 1RItbZ-0003Ix-GX for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2011 04:52:37 +0200 Original-Received: from localhost ([::1]:39837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RItbZ-0007Jr-5E for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2011 22:52:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RItbW-0007Jj-Gc for emacs-devel@gnu.org; Tue, 25 Oct 2011 22:52:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RItbV-0005aM-9K for emacs-devel@gnu.org; Tue, 25 Oct 2011 22:52:34 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:38324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RItbV-0005aH-69 for emacs-devel@gnu.org; Tue, 25 Oct 2011 22:52:33 -0400 Original-Received: by ggnh4 with SMTP id h4so1342707ggn.0 for ; Tue, 25 Oct 2011 19:52:32 -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=G4gW3gzhyCXiUS5gMq6HQ45wgTIze8ydEI5jGnST/+I=; b=im6i43hebVW+mf05fKnNCK9PS02WfcXOdwip75KwDKhYYEYVTMZDq2GjdJCI30GaRW 0Ph5ApUpWDWDkhK1xmU5vySWxI+bYb0UyKekODEXfeOKpWPjNuiNK3yADvUJSWPrx+Ej 3GfPA4ByOOd4FcwOVj6r2P3EYuEq980AlfcnI= Original-Received: by 10.236.145.3 with SMTP id o3mr8108172yhj.71.1319597552383; Tue, 25 Oct 2011 19:52:32 -0700 (PDT) Original-Received: from MARVIN (71-212-154-245.hlrn.qwest.net. [71.212.154.245]) by mx.google.com with ESMTPS id j25sm533151yhm.12.2011.10.25.19.52.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Oct 2011 19:52:31 -0700 (PDT) In-Reply-To: (Juanma Barranquero's message of "Wed, 26 Oct 2011 04:23:52 +0200") 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.161.169 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:145543 Archived-At: Juanma Barranquero writes: > Why don't you do > > (defadvice quit-window (before advise-quit-window activate) > (when (called-interactively-p 'any) > (ad-set-arg 0 (not (ad-get-arg 0))))) Nice, thanks. I will give this a try.