unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* prefix arg in (interactive (list )) form
@ 2011-06-04  3:58 Jambunathan K
  2011-06-04  4:54 ` PJ Weisberg
  0 siblings, 1 reply; 2+ messages in thread
From: Jambunathan K @ 2011-06-04  3:58 UTC (permalink / raw)
  To: help-gnu-emacs


How do I get prefix arg in the code down below?

(defun org-export-as (backend arg)
  ;; (interactive "Mbackend: \nP") <====== original
  (interactive
   (list (ido-completing-read
	  "Export to: " org-export-other-backends-alist nil t nil)
	 nil))	; <===== equivalent. How do I get prefix arg here

  ;; etc etc etc
  )


TIA,
Jambunathan K.

-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: prefix arg in (interactive (list )) form
  2011-06-04  3:58 prefix arg in (interactive (list )) form Jambunathan K
@ 2011-06-04  4:54 ` PJ Weisberg
  0 siblings, 0 replies; 2+ messages in thread
From: PJ Weisberg @ 2011-06-04  4:54 UTC (permalink / raw)
  To: Jambunathan K; +Cc: help-gnu-emacs@gnu.org

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 <kjambunathan@gmail.com> wrote:
>
> How do I get prefix arg in the code down below?
>
> (defun org-export-as (backend arg)
>   ;; (interactive "Mbackend: \nP") <====== original
>   (interactive
>    (list (ido-completing-read
>           "Export to: " org-export-other-backends-alist nil t nil)
>          nil))  ; <===== equivalent. How do I get prefix arg here
>
>   ;; etc etc etc
>   )
>
>
> TIA,
> Jambunathan K.
>
> --
>
>

-- 

-PJ



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-04  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-04  3:58 prefix arg in (interactive (list )) form Jambunathan K
2011-06-04  4:54 ` PJ Weisberg

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).