From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: List line numbers for easy navigation Date: Thu, 18 Apr 2024 22:54:32 +0200 Message-ID: <87jzkufl2v.fsf@gmx.net> References: <87sezifmy8.fsf@gmx.net> <87o7a6fm47.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37357"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 18 22:55:31 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 1rxYn4-0009Ru-Ap for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Apr 2024 22:55:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxYmJ-0000z6-Gt; Thu, 18 Apr 2024 16:54:43 -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 1rxYmH-0000yv-HD for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 16:54:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxYmE-0005g6-D5 for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 16:54:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1713473673; x=1714078473; i=stephen.berman@gmx.net; bh=oEilEGFhp4Zq6LksJNHwl3b0wsWgVau60W8E9/knNxA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=QLc3qBHdV5WCwkULBYrAmpWyqaZc5fX1w61Za4M0MW5NkTMKDxtTBx1+qE5ax2lI VCrkxdLHUkjM3BJ4Dstx8pFsxR3trOQQAKQ7mSAFNFGE1rkb75oMHV4tHjoBNRV4g 6j67KDnYXO8jKUjXyDWP5/ccUlZWl9sY0GOT6b1HjaKzDXliBm8QfHw4iTemuYkpV Y8TBorNSK2rfGIAPpAE1aS/nRnIL8wOBuHcnI0fpd0AsroJJ64AQPiRCXNcprUF4b HPUIZt9JJWgdahPEbjF+IcZsmhfhlyJAxixi/KXvHp22MIIwgUPajOp1baJoPPvhp MGDx3kkpVByt8O9YdA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs ([94.134.94.180]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MgvvJ-1se3fQ1gvl-00hP7e; Thu, 18 Apr 2024 22:54:33 +0200 In-Reply-To: (Heime's message of "Thu, 18 Apr 2024 20:38:44 +0000") X-Provags-ID: V03:K1:QqVdzcYhJnUDj+EcmigWL5rfn4C3XCVDUL4eTVNNRJ3QuyakuzF jSg8HPB0S2i9k2G71X9G9LXuh5EMHs2fLCxXBphUKZVtE51I1C7kVInTon86jrcnoT1msbH TiX/FUKvmOPfeym/E1JzvdLPAmQiNgHyxhTh/S6o/IfeVKPwZO5/wIEZz+Z/oQHs9Otu9NQ sPkbMZjJ4oXb21nb+dNOg== UI-OutboundReport: notjunk:1;M01:P0:g5nRbvq5YS0=;G31F33ajaCwb/UJU+MAlkdAROL3 9zE9c+ShqbaGXCGFVcFA+6Ac0vIY1tIKCijZz3PnNimJ4aqU1y1zbuqUg69SihLgp6Aq/tsSj elrs4rqi5BbiEqj4bxL/jcldpLTdjAY81pZ2hcxUK/SOrVkZerjxJxTM4ob1MAkhySFzrKweK 6IiZcHdyfGYiWIY9g/o/dCIchOAcGLGtMH/kOnirWb/U1M7IXE+ZCTU7/XQpo6byAWYZ6pVUn Un/qa4iG1cAZAw2x2EjvXXtmbXgRjtHMSx0cVJ40XFt3/olf0GG8kCKXhxTCLAzjCEXPRusfI XWt4EwKuJjIXYkyJ6/+LeDbbALsBeWts62GiHLlAkD/7UUX0AQKJhJMf7jV0YL37a/IV9l7Hv 9BtgFfWuyEIFbrbEsBf0HgjEBFIvJv1oCiPlyv0x4VHge8TUmAGzgYJj6cGhKDj4CzFwr3fWd STLKYkviVgIy76EwJBGLbGOkOIuLyRlW9N+cqIThGFnvrUAoltW1iwiobuprNvOv9tsZmGqQ3 uRceSWDQoDyUy3m6pbaTS0KZJDlyfU+GIJWstZdyvSSnd9uIlHtyP2EEuYq1OXwiJQh5/SEvN PNuzab1LRhKKt3X7koCw9p3SUBnNjqwR2Oonm8G9gFK9VLk9dyMiTpCzOf+OMLFRl8AVaxKUl Hv1wrWntA89AJN5ebMjDoZttHr6RJ6J4mOo8I4HrRLdm1ErVoAN0PL+k/y/fVP7WKG3KAv6+A tuLd5N6YE43gorih4N0fyihwWz7Aj/YsSUlbqOwKWYJMJi0fubIA5JrOJsV1nlOq2AfnBfPJ Received-SPF: pass client-ip=212.227.17.21; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:146358 Archived-At: On Thu, 18 Apr 2024 20:38:44 +0000 Heime wrot= e: > 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 wro= te: >> >> > 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 naviga= te 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, ca= n >> you rephrase? > > To move cursor from one row in the list to the next row in the list. > >> > 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 > > Suppose I am writing some code at row 1358 and want to check on two func= tions, > 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. 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? Steve Berman