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

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

bug#46167: 28.0.50; [Feature Request] Handle goto-map digit as goto-line


From: Juri Linkov
Subject: bug#46167: 28.0.50; [Feature Request] Handle goto-map digit as goto-line
Date: Fri, 29 Jan 2021 10:47:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> I recommend that the ten decimal digits be bound in `goto-map' to a
> function that calls `goto-line', bringing up a prompt with the given
> digit as the default value.  For example:
>
> `M-g 4' should result in the following prompt:
>
>   Goto line: 4!
>
> where ! represents the location of the point.  I've implemented this in
> my init file, but as I have had difficulty getting a legal disclaimer
> from my employer in the past (they want to have every single change go
> to the lawyers separately), I'm holding back on sending any
> implementation.

Fortunately, it's already easy to go to e.g. line 42 by typing just

  42gg

while holding the Meta key, i.e. M-4 M-2 M-g M-g.





reply via email to

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