help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling function as if it had a C-u prefix


From: Michael Heerdegen
Subject: Re: Calling function as if it had a C-u prefix
Date: Fri, 27 Feb 2015 23:09:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]