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

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

Re: interactive spec with reasonable numbers for c-u


From: Eli Zaretskii
Subject: Re: interactive spec with reasonable numbers for c-u
Date: Thu, 08 Sep 2022 08:45:10 +0300

[Please don't cross-post to both help-gnu-emacs and emacs-devel.]

> From: Samuel Wales <samologist@gmail.com>
> Date: Wed, 7 Sep 2022 17:47:29 -0700
> 
> not on these lists.
> 
> some commands use c-u a few times, and the code does some stuff with
> interactive p or P that works with base 4 artithmetic and navigation
> commands.
> 
> e.g. you will get number slike 1 for c-u, then 4 for c-u c-u.
> 
> or you will get a list with base 4 artithmetic.
> 
> then the programmer uses those to make a decision of what the command
> should do.  iirc (64) i ssomething like c-u c-u c-u.
> 
> our bodies are constructed and maintained by base 4 arithmentic.  it
> is great stuff.  but i think programmers migh want things like 1, 2, 3
> for, respectively, c-u, c-u c-u.  so, idk,  if a number really is
> provided, then it an be in a list.
> 
> but most of the time i am not talking about entering a number using m-
> or using c-u, but merely going c-u c-u c-u m-x ....
> so i was wondering if there exists an interactie spec that returns 0 1
> 2 3 for the number of c-u gien to the command.

How about using (log N 4), where N is what you get from the prefix,
i.e. 4, 16, 64, etc.?



reply via email to

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