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

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

Re: Rationale behind conversion of a nil prefix arg to numeric 1


From: Kaushal Modi
Subject: Re: Rationale behind conversion of a nil prefix arg to numeric 1
Date: Tue, 06 Sep 2016 16:41:55 +0000

Ah! So you are suggesting to use the lowercase (interactive "p") AND (setq
counter (or arg 1)) !

I thought you were providing an alternative to not having to use the
lowercase p interactive form.

On Tue, Sep 6, 2016 at 12:37 PM Andreas Röhler <
address@hidden> wrote:

> Not sure IIUC
>
> (defun whatarg-p (arg)
>   (interactive "p")
>   (message "%s" arg))
>
> Called with simply C-u without numeric argument gives me "4"
>
> (4) would be the result with uppercase P
>
-- 

Kaushal Modi


reply via email to

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