From: Michael Heerdegen <michael_heerdegen@web.de>
To: torys.anderson@gmail.com (Tory S. Anderson)
Cc: help-gnu-emacs@gnu.org
Subject: Re: Calling function as if it had a C-u prefix
Date: Fri, 27 Feb 2015 23:09:55 +0100 [thread overview]
Message-ID: <87r3tbgg5o.fsf@web.de> (raw)
In-Reply-To: <87pp8vrpfh.fsf@gmail.com> (Tory S. Anderson's message of "Fri, 27 Feb 2015 16:54:10 -0500")
torys.anderson@gmail.com (Tory S. Anderson) writes:
> For whatever reason, the quote and the
> parentheses did the trick. Thanks!
See (info "(elisp) Prefix Command Arguments").
One has to look at the interactive spec of the defun in the source to
see whether a numeric or raw prefix arg is used and expected in the
body.
When `org-clock-in' had used (interactive "p") instead, your version
(org-clock-in 4)
would have worked. But the function wants to treat a C-u prefix
specially, so it uses "P".
next prev parent reply other threads:[~2015-02-27 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-27 21:24 Calling function as if it had a C-u prefix Tory S. Anderson
2015-02-27 21:34 ` Drew Adams
2015-02-27 21:44 ` Michael Heerdegen
2015-02-27 21:54 ` Tory S. Anderson
2015-02-27 22:09 ` Michael Heerdegen [this message]
[not found] <mailman.961.1425072293.31049.help-gnu-emacs@gnu.org>
2015-02-27 21:51 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3tbgg5o.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=torys.anderson@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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).