From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Dr. Arne Babenhauserheide" Newsgroups: gmane.emacs.devel Subject: Re: A feature to go to last edit locations Date: Tue, 14 Feb 2023 07:29:28 +0100 Message-ID: <87edqslpxa.fsf@web.de> References: <871qmtl50l.fsf@md5i.com> <66E884D1-88D6-40F7-B9C0-603E72781EA2@aol.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31106"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.13; emacs 28.1 Cc: Michael Welsh Duggan , Daniel =?utf-8?Q?Mart=C3=ADn?= , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 14 07:31:40 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 1pRoqp-0007th-UR for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Feb 2023 07:31:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRopv-0003c6-R0; Tue, 14 Feb 2023 01:30:43 -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 1pRops-0003bj-IT for emacs-devel@gnu.org; Tue, 14 Feb 2023 01:30:40 -0500 Original-Received: from mout.web.de ([212.227.15.4]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRopq-0005ZU-0f for emacs-devel@gnu.org; Tue, 14 Feb 2023 01:30:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1676356229; bh=esKAJ2BBBUZJpblxMDjk5UPe2qcfKOXeax5giigLafQ=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=XQjPO5YGuawwoJehqyBoSCkaBUan6uj7gzOXKwwdeCexxWSKpGbBihyceu8ISjEap v70dmmXg77QSc2+s2dRsy4+B1zvpgaqvnezII0hWZ1qNheQR9ccVI4XQwVHnvC+Mdz WYdRYfg1dySXMMtzvePPpdt2TiouLhg0uNrmb8OX0nsKgHhg+4OOHYvESTFzCUbpH6 2/WTrmspypGgv5jsg4O43lAxgE2Q6Jrdpw5tF5fNuyAH6Sc++Ki6L/9gRIV7tb1aH0 IYDRzKVIjwvdyNp0ziilxD6rRhOSKRl3s1cKfqLqXZVo/Q+IDkr/6UMExQrdkXaj2T sLvK7lw620fTQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from fluss ([84.149.95.143]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MAtwr-1pGVEy38bh-00BI4c; Tue, 14 Feb 2023 07:30:29 +0100 In-reply-to: <66E884D1-88D6-40F7-B9C0-603E72781EA2@aol.com> X-Provags-ID: V03:K1:Y7P0NGtpaM7KnrnUONxS0GuXsZJ2/o7286WxOR8qXaNfPTXQs7W AnqAJuETtSUwGH374/eWPsYmWGDWx/JCmxK/6WPfegvDpxVB5MnX8sYAjza66oNCz8fcFsF 0J0pMbRGTpenWnsBOxY3zA+gBqWjd8xCY9HrL11A8Njsrb87mubDe6ZYbuFxZEstahAH1hB kaROVMJih2KcUcOMybKbA== UI-OutboundReport: notjunk:1;M01:P0:wby+fVPGBAc=;wNxm46o6UzsYrCROPnft5+Z7aMS 9Y9DlYJCn9E9VpHbK3q6rPG2Rskeykss8CSnwhXO2Tb0muhEz+rUNFIfwPhDTTTd5ESvq+OHP g1Reu1nfomMXsDUvkNJIYuhn3Cc5bLRUBzEED95HTkosYqGFyvwWALkF8T3qB2RHX57AkuxW8 ph40+VHltWCA7PH1+o+mVJCFhItPyUNWy1rfl3ULSDCakQAjj46JulZ+eTBWVMELDP0tocYMu aw1bwrxIFBLtEooBstRuwifByCjgpyJp9Gbtijo41MUkLFg7btplygIAjJnYJo2cTwlI4o32a IYVkP8epyATC5cKyoW2zWT5j/+H7EjKTmAKCzsZxr0P/RBl1LFUPyrZDYZ7+VXyxNngZ5+9hx 7g0Balv487nP5c+Vbdx1B6NTSZirzIVMSsLeSmj1CKVHeta91uJzK7Docs3oBkVhKBONctemY qt0RFoeT9wQVwGWkQIYVKN4v9ODq/LT8eoXF3KpxnuIjqYrP+WW8Ai8PVFTOLjQTeAUtPlCUF LSAPGs93dA23OPd1ML1rycCz0G8CCuOWkrOMpoevAHMdxYhj242rhi5qCqpbN+JKfZbaGjDYg jxN5M5byeligNFfRdhxFMCiCbzI73SPhpYb6CryqkyfHgO1o7mSiyMtDPs2onqRCgbBP3caJm BviMVizmQ6lWyOTE6JnEitX2TL5P0tgoWYKrmfwvqBhnJK1HuIPf39p/Wo1mHTCgoI6tPLS23 u1XoJSelTocaJ7cHd3PokhtSYbH/sXv8dS1sOYSbVry7TqGK7s54mGG8V86Nf8P2ngY49jgs Received-SPF: pass client-ip=212.227.15.4; envelope-from=arne_bab@web.de; helo=mout.web.de 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_H3=0.001, RCVD_IN_MSPIKE_WL=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:303261 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ergus writes: > 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. For example, in Eclipse or >>> IntelliJ IDEA, this feature is under Navigate, Last Edit Location. In >>> Vim, this feature is called a "change list jump" [1], but it seems to >>> work in a per-buffer basis. >>> >>> The closest thing in Emacs is pop-global-mark, but it's not quite the >>> same feature. The global mark ring requires that the user sets the mark >>> in advance, and most editing commands do not set the mark. Information >>> 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. >> >>I often want to jump to the last change I made in a buffer, but I've >>never wanted this across buffers. The method I use for this, burned >>into my fingertips, is "C-_ C-SPC C-_", which is undo, set mark, undo. > > I use exactly this same method (undo-redo). It is not very > confortable, so any function to mimic part of this may be useful... Try the goto-chg package. It just uses the undo ring to find previous locations. Sometime it=E2=80=99s a bit buggy when you use lsps with save actions, but in general it works really well. Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmPrKoIQHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD6yUeEACR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