From: Juanma Barranquero <lekktu@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Bastien <bzg@altern.org>, Tim Cross <theophilusx@gmail.com>,
emacs-devel@gnu.org
Subject: Re: [emacs-w3m:11603] Re: interactive-p obsolete
Date: Thu, 7 Jul 2011 00:51:52 +0200 [thread overview]
Message-ID: <CAAeL0SRsZPe3jDFcTXoVOo2qbb5aQJXqwx_PS8C18SLXUWP15Q@mail.gmail.com> (raw)
In-Reply-To: <CANbX367=tuRJcyDYjRrRuH-XQ+jdq+BzLFAzMzh3ksfVNdVGpQ@mail.gmail.com>
On Wed, Jul 6, 2011 at 20:16, Lennart Borgman <lennart.borgman@gmail.com> wrote:
>> (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?
Hmm... What for? In the Emacs trunk, it trivially resolves to
"(with-no-warnings (called-interactively-p kind))", which is a longish
way to say just "(called-interactively-p kind)". And externally
maintained packages would still need to define it because the whole
point is that they are loaded in environments which are *not* the
Emacs trunk... So the only benefit for them would be to be able to do
(if (fboundp 'compatible-called-interactively-p)
(compatible-callled-interactively-p kind)
;; compatibility code here
and that's no less trouble that directly defining the compatibility
macro in the first place.
Juanma
next prev parent reply other threads:[~2011-07-06 22:51 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
2011-07-06 18:33 ` Bastien
2011-07-06 22:51 ` Juanma Barranquero [this message]
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=CAAeL0SRsZPe3jDFcTXoVOo2qbb5aQJXqwx_PS8C18SLXUWP15Q@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--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.