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 22:06:00 +0000 Message-ID: References: <87sezifmy8.fsf@gmx.net> <87o7a6fm47.fsf@gmx.net> <87jzkufl2v.fsf@gmx.net> <87frvifk2c.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="2049"; 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 Fri Apr 19 00:07:13 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 1rxZuT-0000Hv-Dm for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 19 Apr 2024 00:07:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxZte-00008T-I3; Thu, 18 Apr 2024 18:06:22 -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 1rxZta-00008A-FU for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 18:06:20 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxZtU-0001Jv-N4 for help-gnu-emacs@gnu.org; Thu, 18 Apr 2024 18:06:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1713477967; x=1713737167; bh=EsPlb0jwlHLVAYzaJh2lV3nS9RG9xLCLRUalUWDiduA=; 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=zahmoM93wwDyZyImmZbcbDRhJosdMwkvYhi2PQM3AmLQR/NG1/yR8d+pb7azTlZ66 +J6Mx/nFnunRsHg2zg3ULWU+WAbW7tDswRmnSSwGtOmErZ2Dqe+ZWK6yIgm35c5mS2 JBFtNrVJl5UgSfbhu4a8idXzC/hu/xjmTVh+C1TxPXJ3bOdBIeheq7qptY76de92t/ G6HxCt3Xrln3RUKZutTK04jZ728UNH59cIT/dAvRJu4mJMksteigd4voKS+fDguRz5 m0XMcZyywz/a37fhg8e5QPEs61MLH9gCSvBeHyuAGGSI9EGOZctjLA3oo7M91rmStx zkDf+XeoIG6Qg== In-Reply-To: <87frvifk2c.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 2f7884c8be1f1dcdacfa4053a8bad2b27a3a4ee9 Received-SPF: pass client-ip=185.70.43.24; envelope-from=heimeborgia@protonmail.com; helo=mail-4324.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:146361 Archived-At: On Friday, April 19th, 2024 at 9:16 AM, Stephen Berman wrote: > On Thu, 18 Apr 2024 21:02:56 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 > > On Friday, April 19th, 2024 at 8:54 AM, Stephen Berman > > stephen.berman@gmx.net wrote: > >=20 > > > On Thu, 18 Apr 2024 20:38:44 +0000 Heime heimeborgia@protonmail.com w= rote: >=20 > [...] >=20 > > > > Suppose I am writing some code at row 1358 and want to check on two= functions, > > > > 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= command to > > > > navigate between them. Call command te get me to the respective row= . > > >=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 > >=20 > > Because I am finding that going to the marks with the current keybindin= gs > > difficult to remember. Perhaps I can make a new easier command that tak= es > > care of the marks for me and help me use the existing emacs commands wi= thout > > too much struggle. >=20 >=20 > Then I can only suggest reading those sections of the Emacs manual and > if necessary looking at the source code of the functions (I think most > of the are Lisp functions in simple.el). Then maybe you can put > something together for yourself, though I suspect it won't be easy to > get something that works as well as the existing commands. One other > tip: if what you really want to do is navigate between existing > functions or other named pieces of code, then using `M-.' and` M-,' is > probably the most efficient way, see (info "(emacs) Looking Up Identifier= s"). >=20 > Steve Berman I know that C- calls the command (set-mark-command ARG) But have no idea of the commands associated with "C- C-" and with= "C-u C-". Would like a command I can call with M-x that does the marking functionality.