From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Run Non-Interactive Function with Prefix Date: Tue, 18 Oct 2005 20:37:27 +0200 Organization: Freie Universitaet Berlin Message-ID: <87y84qlli0.wl@nospam.anselm.chemie.fu-berlin.de> References: <87ach6dbh2.fsf@be.cs.appstate.edu> <4355290F.3030008@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1129660897 14231 80.91.229.2 (18 Oct 2005 18:41:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2005 18:41:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 20:41:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERwNp-0002yf-Cx for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2005 20:40:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERwNo-0007Nm-Ds for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2005 14:40:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: news.uni-berlin.de V6Ke7dNURTM0kjISYfhqmQOO5uRkWn7Ukfl/Dh6//tdhYcoMa3rANGJC5S X-Orig-Path: azrael.lygophilia.de!news In-Reply-To: Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) X-Meat: Bacon Original-Xref: shelby.stanford.edu gnu.emacs.help:134760 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30342 Archived-At: 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