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 20:38:44 +0000 Message-ID: References: <87sezifmy8.fsf@gmx.net> <87o7a6fm47.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="34333"; 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 22:39:22 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 1rxYXS-0008eC-9j for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Apr 2024 22:39:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxYX3-0002ej-Je; Thu, 18 Apr 2024 16:38:57 -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 1rxYX2-0002eW-04 for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 16:38:56 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxYX0-0003DK-3M for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 16:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1713472731; x=1713731931; bh=0UANKb1EAO4riTaNILdP7r1TLCO3UtDryplmTRJfyP0=; 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=wAPXsuJGG2QJeYvjXaOQ/bV49dTvdAZI2dx3vOaE27dvVJdMTf8LdqFs9NzgMgYfP xVip6lEycC3fdFBCsCziXtwMDdqMmdRGPW6XJrnyFuGuESbumbHr/qVlx7UuJ2LVZm uNbwnr4kF7Xo5tXQ0QBr1UZVu6tzCVIDOGMeRootC7ME/xZ3tgI1Jzp2ZcYVVAfftJ wm9QcAR5YsFv90GoYoao/sV/Sj9oFRdoDCZMslTu/LNRxOVSp9anKp13C2G/Wun5kT PLGKz1vNJn0glF+QcE7gFG2NH2e8rYBSvik3AQqbsAfXYrVr5MmGJUEsvkeAsmGczs Or+C1SPQ+AuVQ== In-Reply-To: <87o7a6fm47.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 5c4904bfa62222ef09ff3e426106b537ef1714e6 Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.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:146357 Archived-At: On Friday, April 19th, 2024 at 8:32 AM, Stephen Berman wrote: > On Thu, 18 Apr 2024 20:23:17 +0000 Heime heimeborgia@protonmail.com wrote= : >=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.com w= rote: > > >=20 > > > > I want to have a list of line numbers so that I can easily navigate= 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 list, >=20 >=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 >=20 > To move from one line to the next? C-n. If that's not what you want, can > you rephrase? 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 need > > some good commands to do this. >=20 > What specifically do you mean by different parts? >=20 > Steve Berman Suppose I am writing some code at row 1358 and want to check on two functio= ns, 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 comman= d to=20 navigate between them. Call command te get me to the respective row.=20