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: Andreas Röhler
Subject: Re: Rationale behind conversion of a nil prefix arg to numeric 1
Date: Mon, 5 Sep 2016 20:41:22 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0



On 05.09.2016 17:22, Kaushal Modi wrote:
Exactly.

Just treat the "p" (lowercase p) interactive form as the special case where you only need to deal with numeric arguments and the default numeric argument is 1.

If you need to deal with numeric, nil and other non-numeric arguments like (4), (16), etc, use the "P" (uppercase p) interactive form. The "P" interactive form passes the args to the function in their raw, untouched form.

Leaving out the argument with uppercased P, it sends nil --correct-- whose numeric value is considered 1 again.

Understand it might be considered a feature, but think the caused inconsistency weights in more.



reply via email to

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