From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: called-interactively-p
Date: Thu, 25 Nov 2010 09:24:17 +0900 [thread overview]
Message-ID: <b4mlj4itfm6.fsf@jpl.org> (raw)
In-Reply-To: <b4mhbf6uzbz.fsf@jpl.org>
Katsumi Yamaoka wrote:
> That's not in XEmacs. Please don't use it.
Moreover called-interactively-p allows no argument in Emacs<23.2 .
,---- Emacs 23.1 ----
| called-interactively-p is a built-in function in `C source code'.
|
| (called-interactively-p)
|
| Return t if the function using this was called with `call-interactively'.
| [...]
`----
> Otherwise may I write
> a compiler-macro, that replaces it with `interactively-p' in .elc
> files, in dgnushack.el?
I added the following to dgnushack.el temporarily to build Gnus
for all the Emacsen that Gnus should support:
(define-compiler-macro called-interactively-p (&whole form &optional kind)
(or (condition-case nil
(progn (called-interactively-p 'any) nil)
(wrong-number-of-arguments '(called-interactively-p))
(void-function '(interactive-p)))
form))
prev parent reply other threads:[~2010-11-25 0:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 22:33 called-interactively-p Katsumi Yamaoka
2010-11-24 22:41 ` called-interactively-p Katsumi Yamaoka
2010-11-24 22:46 ` called-interactively-p Julien Danjou
2010-11-24 22:55 ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 22:59 ` called-interactively-p Julien Danjou
2010-11-24 23:02 ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 23:11 ` called-interactively-p Lars Magne Ingebrigtsen
2010-11-24 23:34 ` called-interactively-p Katsumi Yamaoka
2010-11-25 20:50 ` called-interactively-p Adam Sjøgren
2010-11-24 23:03 ` called-interactively-p Katsumi Yamaoka
2010-11-25 0:24 ` Katsumi Yamaoka [this message]
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=b4mlj4itfm6.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).