* C-u j in Rmail jumps to message number 4
@ 2024-04-22 22:08 BP25
2024-04-23 5:36 ` tomas
0 siblings, 1 reply; 3+ messages in thread
From: BP25 @ 2024-04-22 22:08 UTC (permalink / raw)
To: help-gnu-emacs
Hi! I tried this with three independent Rmail files: does anybody know
why C-u j in Rmail, shows message number 4?!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C-u j in Rmail jumps to message number 4
2024-04-22 22:08 C-u j in Rmail jumps to message number 4 BP25
@ 2024-04-23 5:36 ` tomas
2024-04-23 7:11 ` Joost Kremers
0 siblings, 1 reply; 3+ messages in thread
From: tomas @ 2024-04-23 5:36 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
On Mon, Apr 22, 2024 at 11:08:59PM +0100, BP25 wrote:
> Hi! I tried this with three independent Rmail files: does anybody know
> why C-u j in Rmail, shows message number 4?!
Because C-u is the "universal argument" -- a way of providing args
to commands. All by itself it just means 4 (yes, hear me out :)
Each additional C-u multiplies that by 4, so twice C-u means 16.
But you can enter digits after C-u (and before the command taking
the argument) to control your argument's value. So
C-u 4 2 j
would jump to message 42.
This also works for moving around in a text buffer (where the
exponential behaviour of "naked" C-u does make more sense).
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C-u j in Rmail jumps to message number 4
2024-04-23 5:36 ` tomas
@ 2024-04-23 7:11 ` Joost Kremers
0 siblings, 0 replies; 3+ messages in thread
From: Joost Kremers @ 2024-04-23 7:11 UTC (permalink / raw)
To: tomas; +Cc: help-gnu-emacs
On Tue, Apr 23 2024, tomas@tuxteam.de wrote:
> On Mon, Apr 22, 2024 at 11:08:59PM +0100, BP25 wrote:
>> Hi! I tried this with three independent Rmail files: does anybody know
>> why C-u j in Rmail, shows message number 4?!
>
> Because C-u is the "universal argument" -- a way of providing args
> to commands. All by itself it just means 4
Yup. For the whole enchilada, see here: (info "(emacs) Arguments")
--
Joost Kremers
Life has its moments
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-23 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 22:08 C-u j in Rmail jumps to message number 4 BP25
2024-04-23 5:36 ` tomas
2024-04-23 7:11 ` Joost Kremers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.