unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: torys.anderson@gmail.com, Emacs Help List <help-gnu-emacs@gnu.org>
Subject: RE: Calling function as if it had a C-u prefix
Date: Fri, 27 Feb 2015 13:34:31 -0800 (PST)	[thread overview]
Message-ID: <e0abe213-858d-4a53-b9f8-278e10dca546@default> (raw)
In-Reply-To: <87wq33rqsm.fsf@gmail.com>

> I'm playing around with hydra and am trying to bind a key to do the
> equivalent of `C-u org-clock-in`. I've tried following a related question on
> SO[1] but it doesn't seem to be working. Can anyone tell me where I'm off?

Call `org-clock-in' passing it an explicit argument that corresponds to
the prefix arg value.  (I don't have the function info, but if you do
`C-h f' you should see what the signature is.)

Sometimes a function does not pass the prefix arg as a parameter, but
typically functions do, and the advice above should be sufficient.



  reply	other threads:[~2015-02-27 21:34 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 [this message]
2015-02-27 21:44   ` Michael Heerdegen
2015-02-27 21:54     ` Tory S. Anderson
2015-02-27 22:09       ` Michael Heerdegen
     [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=e0abe213-858d-4a53-b9f8-278e10dca546@default \
    --to=drew.adams@oracle.com \
    --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).