From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: List line numbers for easy navigation Date: Thu, 18 Apr 2024 21:02:56 +0000 Message-ID: References: <87sezifmy8.fsf@gmx.net> <87o7a6fm47.fsf@gmx.net> <87jzkufl2v.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 18 23:03:55 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rxYvB-000ARw-SM for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Apr 2024 23:03:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxYuV-0003jl-Uu; Thu, 18 Apr 2024 17:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxYuU-0003jX-78 for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 17:03:10 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxYuS-0007Fc-Gp for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 17:03:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1713474185; x=1713733385; bh=swmVLcC17cWyfJCI4gvvzbhM3CjJ04HJ3bqKuHv3xFQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=SoKvcC/tc9Sake6VMecUsZc6KIeoJPMtjdUgqtXCBJUNR0QaaLJphixV0/JKLID17 zCzF1QdbqhLCZlvP9v0xdFQPqbTTk7Tv5jMd+2b5qd2N5xlk78CC6npB9mu1O1Ur1T DSEyEVQMWgeqebnwxOf0CO4AJBr8ebhLyInAqorVomRZwFZBC7c+F8j67yCBzkpaaL NeAMUGwNnU4aAL4NUokdDHRv29E9xBeokQV+cZc9AcRFFtZa1dtGMSdtPbNySh4BJ0 cU11fIyK0racA6eACAxBQjjabyZFV4RNe8S3WIoIGXVY4D9CTCFvVO7one+xEXYbZd uOwWXqYqLCNig== In-Reply-To: <87jzkufl2v.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: b172b0709b09de205bd400e9be3674ab2059158a Received-SPF: pass client-ip=185.70.40.27; envelope-from=heimeborgia@protonmail.com; helo=mail-4027.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146359 Archived-At: On Friday, April 19th, 2024 at 8:54 AM, Stephen Berman wrote: > On Thu, 18 Apr 2024 20:38:44 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 > > On Friday, April 19th, 2024 at 8:32 AM, Stephen Berman > > stephen.berman@gmx.net wrote: > >=20 > > > On Thu, 18 Apr 2024 20:23:17 +0000 Heime heimeborgia@protonmail.com w= rote: > > >=20 > > > > On Friday, April 19th, 2024 at 8:14 AM, Stephen Berman > > > > stephen.berman@gmx.net wrote: > > > >=20 > > > > > On Thu, 18 Apr 2024 19:38:53 +0000 Heime heimeborgia@protonmail.c= om wrote: > > > > >=20 > > > > > > I want to have a list of line numbers so that I can easily navi= gate to them > > > > > > in the current buffer. > > > > >=20 > > > > > (number-sequence 1 (count-lines (point-min) (point-max))) > > > > >=20 > > > > > Steve Berman > > > >=20 > > > > I would like to have a command that adds the current row to the lis= t, > > >=20 > > > 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? > > >=20 > > > > then have a command to move from one to the next, etc. > > >=20 > > > To move from one line to the next? C-n. If that's not what you want, = can > > > you rephrase? > >=20 > > To move cursor from one row in the list to the next row in the list. > >=20 > > > > I frequently > > > > have to navigate quickly between different parts of a buffer and ne= ed > > > > some good commands to do this. > > >=20 > > > What specifically do you mean by different parts? > > >=20 > > > Steve Berman > >=20 > > Suppose I am writing some code at row 1358 and want to check on two fun= ctions, > > one starting at row 355, the other at row 589. I want to go to the row = and add > > the current row to the list (Will do this three times). Then have a com= mand to > > navigate between them. Call command te get me to the respective row. >=20 >=20 > You can do this with existing Emacs commands: `M-g M-g' (or` M-g g') to > get prompted for a line number and then jump to it, and then you can use > the mark ring (info "(emacs) Mark Ring") or registers (info "(emacs) > Position Registers") to navigate between positions. Why reinvent the > wheel? >=20 > Steve Berman Because I am finding that going to the marks with the current keybindings difficult to remember. Perhaps I can make a new easier command that takes= =20 care of the marks for me and help me use the existing emacs commands withou= t too much struggle.