unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Anselm Helbig <anselm@chemie.fu-berlin.de>
Subject: Re: Run Non-Interactive Function with Prefix
Date: Tue, 18 Oct 2005 20:37:27 +0200	[thread overview]
Message-ID: <87y84qlli0.wl@nospam.anselm.chemie.fu-berlin.de> (raw)
In-Reply-To: <mailman.11763.1129656007.20277.help-gnu-emacs@gnu.org>

hi, 

for interactive functions, the prefix argument becomes part of the
argument list, if it is referenced in the interactive declaration. you
can read more about it here:

	(info "(elisp)Prefix Command Arguments")

so if you want to call an interactive function from a program, you
have to figure out which argument corresponds to the prefix
argument. in the worst case scenario, you have to parse the
interactive declaration yourself. but since there already is code that
does just that, chances are you don't have to. 

regards, 

anselm

  parent reply	other threads:[~2005-10-18 18:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 16:41 Run Non-Interactive Function with Prefix Kenneth Jacker
2005-10-18 16:55 ` Lennart Borgman
2005-10-18 17:00   ` Kenneth Jacker
2005-10-18 17:40     ` Lennart Borgman
     [not found]   ` <mailman.11763.1129656007.20277.help-gnu-emacs@gnu.org>
2005-10-18 18:09     ` Pascal Bourguignon
2005-10-18 18:37     ` Anselm Helbig [this message]
2005-10-18 18:33 ` Kevin Rodgers
     [not found] ` <mailman.11782.1129660891.20277.help-gnu-emacs@gnu.org>
2005-10-21 10:31   ` Kenneth Jacker

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=87y84qlli0.wl@nospam.anselm.chemie.fu-berlin.de \
    --to=anselm@chemie.fu-berlin.de \
    /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).