all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Accessing arg with (interactive "P")
@ 2022-07-06  0:26 carlmarcos--- via Users list for the GNU Emacs text editor
  2022-07-06  0:55 ` [External] : " Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-06  0:26 UTC (permalink / raw)
  To: Help Gnu Emacs

I have the following elisp function, using `current-prefix-arg` to decide subsequent processing.

Having made the command examine it directly, the usual method for accessing it is with 
(interactive "P").  The problem is that I do not know how to examine the prefix arg through
 the interactive clause.

(defun poke (&optional prefix)
  "TODO"

  (interactive "P")

  (cond
   ((equal current-prefix-arg nil)   ; no C-u
    (setq workbench-poke-name-mode 1))

   ((equal current-prefix-arg '(4))  ; C-u
    (arktika-workbench))







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

end of thread, other threads:[~2022-07-06 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06  0:26 Accessing arg with (interactive "P") carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-06  0:55 ` [External] : " Drew Adams
2022-07-06  1:16 ` Emanuel Berg
     [not found] ` <SJ0PR10MB54882137B90C8A6D52ACC83DF3809@SJ0PR10MB5488.namprd10.prod.outlook.com-N6G-MQ_----2>
2022-07-06 21:01   ` [External] : " carlmarcos--- via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.