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

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

Re: List line numbers for easy navigation


From: Stephen Berman
Subject: Re: List line numbers for easy navigation
Date: Thu, 18 Apr 2024 22:32:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Thu, 18 Apr 2024 20:23:17 +0000 Heime <heimeborgia@protonmail.com> wrote:

> On Friday, April 19th, 2024 at 8:14 AM, Stephen Berman
> <stephen.berman@gmx.net> wrote:
>
>> On Thu, 18 Apr 2024 19:38:53 +0000 Heime heimeborgia@protonmail.com wrote:
>>
>> > I want to have a list of line numbers so that I can easily navigate to them
>> > in the current buffer.
>>
>>
>> (number-sequence 1 (count-lines (point-min) (point-max)))
>>
>> Steve Berman
>
> I would like to have a command that adds the current row to the list,

Is the current row the line at point?  If so, it's already in the list,
since the list contains all line numbers in the current buffer, isn't
that what you wanted?

> then have a command to move from one to the next, etc.

To move from one line to the next? C-n. If that's not what you want, can
you rephrase?

>                                                         I frequently
> have to navigate quickly between different parts of a buffer and need
> some good commands to do this.

What specifically do you mean by different parts?

Steve Berman



reply via email to

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