unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kenneth Jacker <khj@be.cs.appstate.edu>
Subject: Run Non-Interactive Function with Prefix
Date: Tue, 18 Oct 2005 12:41:13 -0400	[thread overview]
Message-ID: <87ach6dbh2.fsf@be.cs.appstate.edu> (raw)

If I want to execute a function that supports a "prefix" argument
interactively, I enter something like:

     C-u M-x foobar

How can I do the same thing but *non*-interactively?

This will just run 'foobar',

     (foobar)

But how to request it to be run with a prefix arg?


Something simple I am sure, but I can't seem to find a way to do it.

Thanks for your ideas!
-- 
Prof Kenneth H Jacker       khj@cs.appstate.edu
Computer Science Dept       www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC  28608  USA        

             reply	other threads:[~2005-10-18 16:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 16:41 Kenneth Jacker [this message]
2005-10-18 16:55 ` Run Non-Interactive Function with Prefix 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
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=87ach6dbh2.fsf@be.cs.appstate.edu \
    --to=khj@be.cs.appstate.edu \
    --cc=khj@cs.appstate.edu \
    /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).