From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: prefix arg in (interactive (list )) form Date: Fri, 3 Jun 2011 21:54:03 -0700 Message-ID: References: <81d3iu8cxv.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1307163345 10569 80.91.229.12 (4 Jun 2011 04:55:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2011 04:55:45 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 04 06:55:41 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QSith-0001XU-7e for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jun 2011 06:55:41 +0200 Original-Received: from localhost ([::1]:36984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSitf-0003MV-Fo for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jun 2011 00:55:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSisA-0003MO-Da for help-gnu-emacs@gnu.org; Sat, 04 Jun 2011 00:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSis9-0006FS-Gm for help-gnu-emacs@gnu.org; Sat, 04 Jun 2011 00:54:06 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:63185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSis9-0006FG-CA for help-gnu-emacs@gnu.org; Sat, 04 Jun 2011 00:54:05 -0400 Original-Received: by fxm18 with SMTP id 18so2057079fxm.0 for ; Fri, 03 Jun 2011 21:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0s9WGoZabPp4z2JTMct72usOm4/32rLdmQKHyrTah9w=; b=czz2chYmDl8End5xDlK1GtEFDndrx37kjlk0eqSHksXaVTz60zN6JkK3xER5fHdB5Z PptNBiaxg5CfJucJCuIO4DBw7/w/dPqd8o+Th7Fq2Hum6Pc7NSGWJD+nJddBgKdOvIGK CrSXW86z1ThPD45kzQLgijtxpEuYodfcdK5uE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Z/aS+xU6xfLOBvKP4Gh/PIkJ+BoYfa5Q44zd5JHTLcwiDxMAtha80ir83bw3dRKPAa 0ocJPBu6NyATtvsQhectLWhFiUpobeIf89OQajCpRGAt9Tcizk64ZkBAbGhGAHrT7m5R 95yJ5PMdqokwcz3SpgDRIpgMrzKmJ3NN0s3Ck= Original-Received: by 10.223.54.219 with SMTP id r27mr2889807fag.124.1307163243496; Fri, 03 Jun 2011 21:54:03 -0700 (PDT) Original-Received: by 10.223.93.208 with HTTP; Fri, 3 Jun 2011 21:54:03 -0700 (PDT) In-Reply-To: <81d3iu8cxv.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81289 Archived-At: current-prefix-arg Actually anywhere in the function that'll have the value of the raw prefix = arg. On Friday, June 3, 2011, Jambunathan K wrote: > > How do I get prefix arg in the code down below? > > (defun org-export-as (backend arg) > =A0;; (interactive "Mbackend: \nP") <=3D=3D=3D=3D=3D=3D original > =A0(interactive > =A0 (list (ido-completing-read > =A0 =A0 =A0 =A0 =A0"Export to: " org-export-other-backends-alist nil t n= il) > =A0 =A0 =A0 =A0 nil)) =A0; <=3D=3D=3D=3D=3D equivalent. How do I get pre= fix arg here > > =A0;; etc etc etc > =A0) > > > TIA, > Jambunathan K. > > -- > > --=20 -PJ