all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christoph Scholtes <cschol2112@googlemail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Advising quit-window
Date: Tue, 25 Oct 2011 20:52:22 -0600	[thread overview]
Message-ID: <86mxco79cp.fsf@googlemail.com> (raw)
In-Reply-To: <CAAeL0ST2_T2EG4LEMLX+f1TokewT8FMGjvEY4M-n_om8FYqZQw@mail.gmail.com> (Juanma Barranquero's message of "Wed, 26 Oct 2011 04:23:52 +0200")

Juanma Barranquero <lekktu@gmail.com> 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.



  reply	other threads:[~2011-10-26  2:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26  1:54 Advising quit-window Christoph Scholtes
2011-10-26  2:23 ` Juanma Barranquero
2011-10-26  2:52   ` Christoph Scholtes [this message]
2011-10-26  9:21 ` martin rudalics
2011-10-27  3:53   ` Christoph Scholtes
2011-10-27  9:54     ` martin rudalics
2011-10-26 13:54 ` Stefan Monnier
2011-10-27  3:55   ` Christoph Scholtes
2011-10-27  6:43     ` Juri Linkov
2011-10-27 12:06       ` Christoph Scholtes
2011-10-27 12:23     ` Stefan Monnier
2011-10-29  3:57       ` Christoph Scholtes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mxco79cp.fsf@googlemail.com \
    --to=cschol2112@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.