From: Lennart Borgman <lennart.borgman@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Tim Cross <theophilusx@gmail.com>, emacs-devel@gnu.org
Subject: Re: [emacs-w3m:11603] Re: interactive-p obsolete
Date: Wed, 6 Jul 2011 20:16:17 +0200 [thread overview]
Message-ID: <CANbX367=tuRJcyDYjRrRuH-XQ+jdq+BzLFAzMzh3ksfVNdVGpQ@mail.gmail.com> (raw)
In-Reply-To: <871uy3lrfy.fsf@gnu.org>
On Wed, Jul 6, 2011 at 10:54, Bastien <bzg@altern.org> wrote:
> Tim Cross <theophilusx@gmail.com> writes:
>
>> I don't believe the argument of not being able to use the new function
>> because of the need for backwards compatibility is valid. You can
>> solve this problem in a number of ways and maintain backwards
>> compatibility.
>
> FWIW, this is how Org solves it:
>
> (defmacro org-called-interactively-p (&optional kind)
> (if (featurep 'xemacs)
> `(interactive-p)
> (if (or (> emacs-major-version 23)
> (and (>= emacs-major-version 23)
> (>= emacs-minor-version 2)))
> `(with-no-warnings (called-interactively-p ,kind))
> `(interactive-p))))
Why not add such a macro to Emacs?
next prev parent reply other threads:[~2011-07-06 18:16 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-06 6:12 Fwd: [emacs-w3m:11603] Re: interactive-p obsolete Andreas Röhler
2011-07-06 7:09 ` Tim Cross
2011-07-06 8:54 ` Bastien
2011-07-06 18:16 ` Lennart Borgman [this message]
2011-07-06 18:33 ` Bastien
2011-07-06 22:51 ` Juanma Barranquero
2011-07-06 23:08 ` Lennart Borgman
2011-07-06 23:10 ` Juanma Barranquero
2011-07-06 23:16 ` Lennart Borgman
2011-07-06 23:32 ` Juanma Barranquero
2011-07-06 23:44 ` Lennart Borgman
2011-07-06 23:47 ` Juanma Barranquero
2011-07-06 23:57 ` Lennart Borgman
2011-07-07 0:01 ` Juanma Barranquero
2011-07-07 0:12 ` Lennart Borgman
2011-07-07 0:32 ` Juanma Barranquero
2011-07-07 0:44 ` Lennart Borgman
2011-07-07 0:54 ` Juanma Barranquero
2011-07-07 11:38 ` Bastien
2011-07-07 11:50 ` Lennart Borgman
2011-07-07 15:37 ` Stephen J. Turnbull
2011-07-06 11:22 ` Andreas Röhler
2011-07-07 0:06 ` Tim Cross
2011-07-07 6:52 ` Andreas Röhler
2011-07-07 11:36 ` Bastien
2011-07-07 12:55 ` Andreas Röhler
2011-07-07 13:41 ` Juanma Barranquero
2011-07-08 9:57 ` Bastien
2011-07-07 20:10 ` Fwd: " Stefan Monnier
2011-07-09 2:52 ` Tim Cross
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='CANbX367=tuRJcyDYjRrRuH-XQ+jdq+BzLFAzMzh3ksfVNdVGpQ@mail.gmail.com' \
--to=lennart.borgman@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-devel@gnu.org \
--cc=theophilusx@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.