From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: A feature to go to last edit locations Date: Tue, 14 Feb 2023 01:00:05 +0100 Message-ID: <66E884D1-88D6-40F7-B9C0-603E72781EA2@aol.com> References: <871qmtl50l.fsf@md5i.com> 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="34263"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org, Michael Welsh Duggan , =?ISO-8859-1?Q?Daniel_Mart=EDn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 14 01:01:18 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pRil3-0008ik-Bo for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Feb 2023 01:01:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRikN-0001KV-QR; Mon, 13 Feb 2023 19:00:35 -0500 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 1pRikA-0001HI-SB for emacs-devel@gnu.org; Mon, 13 Feb 2023 19:00:31 -0500 Original-Received: from sonic313-14.consmr.mail.bf2.yahoo.com ([74.6.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRik8-00051C-Lu for emacs-devel@gnu.org; Mon, 13 Feb 2023 19:00:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1676332817; bh=oD62/zSpP9PxWvqVf7wqui0A8LwKWylSwsO0N3AnRXg=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject:Reply-To; b=L0B2ZvZ8UOF/t8FSCrJ5/8lvlCWTBvCPzUDUXT8ROBSg8Ul/Lkw6IMpREDsLy3M1zkaM9L3XmK6+c8hcGzqhrKwnvVUc85nhlqfPmKDObKqVLeHRC4jc+I77Cix/fXf3YhjHgFVvJOJ3Qg3STeiAXzgXZGqu/pxDzj1tIqeyYxwoAJSvSX1Wo1rY0MSj2rO5EI8aGoBadn8bJfHIkpZ7hQkk08ZxqenMQChbtzCLjinqYpZ8jjKQtu98YfSRfeB7sutdaQkh5KMLMKcH1yOrpvMQQeCIld0MoB7tT2vZIzPFK2GhASebehBZV5KJh4nJgJrHtRb4hvulVZbVrXtJEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676332817; bh=jntwJJVcxKrIHXXpFzJfwrGNG4nlW4QJzbjnBNd8CTq=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=FFfL8C6tuwydXHcxYxepLOlIOPxacyuz0IqIPS/hpQO3pvy6hb+ZdOyH9qNt2Zy9jSfV4W2zk5dVIBgkYew/CHJkYW+ROC7s8iI+BmUdjFEgyIKeFq1i0gAcX1SO55dFrHGficPhw0eS9zITj2RK/MbpJmnYtf4W93ASXKaUMPgItlYh9hj18lf2FXyT4cOK7gzomEeWxwJxyi9sSXO/rTQdq3zlE99DsM+wccR9XGbPMndeUBvxX3SusRjvE1DHx1QIWr8Q5dd+ZnIFbqhd/Wtic8kydLHcP6H1c4t+oURjtTdvxOB3y9cnzhYCiAWBF4SV1HMG3DLvtVFnEJj+Lg== X-YMail-OSG: JoCwYUcVM1lF3XaNI0UwAqkzy1feM.tvS4YdBbBYNeSYdpd06Jwpfm9Quz59PG_ Bom.36jWOkIfr9HcHXzSHYbINvCG19kKCjgXsPvRFxK6yI_r.4Why1eiD_N7LdwKeNUBnY1gTSwS z74v4GgeEsAamoW3l6nhRqDavj7KjfWrsSP7a6B7ND7gGc_lPk1IPwOpq7zWtTjBMJIj6e6.meyx iXup05uwsF95p4DUA3U9py6zwvYsCpvVafVu13vkvaHqVjXfSezB.5Jw7avDKWQcBUOr71qDL04T jyjPbSK7d.vnLpQgSH3lNYFZeMeeEWP1nMHX21x6dx_bidxVfhP89byH2_x7FPhdSGjyoETWKOsv 1_pFsTHcEyREOiuvaY2fx8zRDBUnfq2rmzTJfLCaS4Pomnhke1u0Ks2x3CWJoIgGWc8jlwtlRfvA 9ZmTSDUQZP4BoHQSpi2TSmVJbZyYiIZiYFuViwVYBMK7.DjIyryeX4Hswy609qBXee0IIGzRtZkZ 0YXF6g13suJVQ0nh9KqL_tVPxsTtFFyzHmo2DaPzFGoyOHUG8Dh2yFvejjisj_VtBz22QjjY0KsC mxJBc4E_OzC3cPT2LtaM3EGjq_TRtfXX_pXh.1L1kwoyQemnH45vnXA373yPch1atxVjpT1lODtD rSBXGb.m_9UjL8CU8uaaC15HrQyp9qBBlaM_vSsACqX_IzXQ9NV37_NxHvPYtkeTm2NgLi_qbECc 04Etmje4AzDJc7lYiaW95mL.A8fwrmkU39rYGd6WyB8IpPlROo5FwxNV8WNhdhvwgOqyoT0Clh31 iPrbWcsK8qLnufj_I2XrS7EGxKz3vSh8viLWmF5gOu X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Tue, 14 Feb 2023 00:00:17 +0000 Original-Received: by hermes--production-ir2-65c64dfd66-q2fgd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0efd3a90441c817c62375bf9d02a5f2f; Tue, 14 Feb 2023 00:00:12 +0000 (UTC) In-Reply-To: <871qmtl50l.fsf@md5i.com> X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.124; envelope-from=spacibba@aol.com; helo=sonic313-14.consmr.mail.bf2.yahoo.com 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_DNSWL_NONE=-0.0001, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303248 Archived-At: On February 13, 2023 8:49:46 PM GMT+01:00, Michael Welsh Duggan wrote: >Daniel Mart=C3=ADn writes: > >> Some IDEs and text editors provide a feature to go to the position of >> the last edit location across all buffers=2E For example, in Eclipse o= r >> IntelliJ IDEA, this feature is under Navigate, Last Edit Location=2E I= n >> Vim, this feature is called a "change list jump" [1], but it seems to >> work in a per-buffer basis=2E >> >> The closest thing in Emacs is pop-global-mark, but it's not quite the >> same feature=2E The global mark ring requires that the user sets the ma= rk >> in advance, and most editing commands do not set the mark=2E Informati= on >> about last edit locations is already kept in buffer-undo-list, but this >> list is per-buffer and does not contain timestamps, so generating a >> "global" list for all buffers out of this data structure does not seem >> very possible or efficient at the moment; it may need a new data >> structure, perhaps at the C level=2E > >I often want to jump to the last change I made in a buffer, but I've >never wanted this across buffers=2E The method I use for this, burned >into my fingertips, is "C-_ C-SPC C-_", which is undo, set mark, undo=2E I use exactly this same method (undo-redo)=2E It is not very confortable, = so any function to mimic part of this may be useful=2E=2E=2E But please, no= thing that affects performance creating fancy cache features=2E I am having= enough issues with performance already=2E=2E=2E >The set-mark causes the second undo to redo and could be replaced by a >cursor movement instead, if one didn't want to mess up the mark >location=2E > >So, although, once again, this doesn't work across buffers, using the >undo list might be helpful for coding such a feature=2E > --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E