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

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

Re: How to count number of C-u prefixes?


From: Jean Louis
Subject: Re: How to count number of C-u prefixes?
Date: Fri, 4 Feb 2022 18:25:53 +0300
User-agent: Mutt/2.1.5+104 (cd3a5c8) (2022-01-09)

* Emanuel Berg via Users list for the GNU Emacs text editor 
<help-gnu-emacs@gnu.org> [2022-02-04 18:08]:
> Oh, oh! Incorrect order of argument mentioned in docstring ...

Am I supposed to mention arguments by their order in docstrin?

> Also instead of C-u use \\[universal-argument].

Thanks, I got it.

> > (let* ((times (if (= prefix 1) 1 (log prefix 4)))
> 
> What, when prefix is 1 one has it C-u 0 times :)
> 
> You just need (log prefix 4), if prefix is 1 that will be
> 
>   (log 1 4) ; 0
> 
> since always x^0 = 1

Yes, but it does not work that way.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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