help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prefix Argument and optional argument


From: carlmarcos
Subject: Prefix Argument and optional argument
Date: Tue, 5 Jul 2022 04:51:27 +0200 (CEST)

I am having difficulty figuring out any problems associated with the following 
two functions.

Can one safely call "M-x name", "C-u M-x name", "C-u 2 M-x name", where name is 
either
`poke' or `poke-opt'.

(defun poke (prefix)
  "TODO."
  (interactive "P")
...)

(defun poke-opt (&optional prefix)
  "TODO."
  (interactive "P")
...)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]