From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karthik Chikmagalur Newsgroups: gmane.emacs.devel Subject: Re: A feature to go to last edit locations Date: Tue, 14 Feb 2023 16:00:41 -0800 Message-ID: <87fsb7n6fq.fsf@gmail.com> References: <871qmtl50l.fsf@md5i.com> <66E884D1-88D6-40F7-B9C0-603E72781EA2@aol.com> <87edqslpxa.fsf@web.de> 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="21346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Welsh Duggan , Daniel =?utf-8?Q?Mart=C3=ADn?= , emacs-devel@gnu.org To: "Dr. Arne Babenhauserheide" , Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 15 01:02:04 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 1pS5FM-0005NP-80 for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Feb 2023 01:02:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pS5EX-0006Uf-Lr; Tue, 14 Feb 2023 19:01:13 -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 1pS5EB-0006Hn-TZ for emacs-devel@gnu.org; Tue, 14 Feb 2023 19:01:01 -0500 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pS5E8-0007Dx-Kl for emacs-devel@gnu.org; Tue, 14 Feb 2023 19:00:49 -0500 Original-Received: by mail-pl1-x629.google.com with SMTP id d8so17448488plr.10 for ; Tue, 14 Feb 2023 16:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CLBk0d3c+XC4wWyopcKf5LZLEvvk5bxWVGtsZe4UxE0=; b=S45u44PFBymd6xNcDiwN7tK9KxuKVKOyIUKeqf3a87qZ1jd3LG1EzZODtpWKIMqGBO C4VOvENWW1ghQck0k1pRo06tiakZHUYYdcSy57CasFO1shLX7fhQw4XYvQ6einAWXHJm oUcxgPZhLcQnOojZi5CAQofw60E2EmyDEURSCUj6AFK7YTJiugEdNc/7D55NojmhPYXP dgTx07oP/MCcR9lI180zJYMVQNkwYr+TTzBqmlex+M23YzyxAsxYZxPD79qKnMrgUFDa ZN/XmExPixBhocc7xzm0Mw2wPQo3uRR1DzUyOyDEE1CjUF8pvradrcptbR8N8pxxA0cg TdFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CLBk0d3c+XC4wWyopcKf5LZLEvvk5bxWVGtsZe4UxE0=; b=gFP/93YYEFciipxwAVRpx8xVDlnP4Qonu7rU8rIjB9DPmiBkITMNGgByL/2DNvabz7 ZRQOXVabkjhBvpYShZx1PAcxg/MQWeGeEtgbnBBtza2Oz4rwJY2DF1QFnK4XxjMtA9uc 6tj5uY6q1oOTRVbRQ/CtcJlmIDNfAAMNNqJCFzU0YWiVemCZ20IlpoHwvKhL81iWMDg9 Y7n0hqvNehwnPgjG6bGo80lwQx9HeRFJzO5kZm7FkOkf+OftvREiS7TNVF115vsaWH39 BzgE8kOfoBfIJQ5tYLk2MMxxOGj590lLT3kZMc2LLmknss2PZOACG+FCYdEhbnqZwA2e Pofw== X-Gm-Message-State: AO0yUKWGj+QdgPvAgYOqEPFm29m+ys0sXRc2wAe7eEuftkxdH2u1j9mK tubS7n4r+nyirBWSWxcyYRk= X-Google-Smtp-Source: AK7set+6GfxZ0ckK2PxzNjF7PY58fbmY8+2s0w/yfEatG8PmJlf329Lae4c/8dtXRVz6kYs4H62+Pg== X-Received: by 2002:a17:902:f38d:b0:19a:906a:e052 with SMTP id f13-20020a170902f38d00b0019a906ae052mr299042ple.64.1676419246768; Tue, 14 Feb 2023 16:00:46 -0800 (PST) Original-Received: from localhost (203.sub-174-193-133.myvzw.com. [174.193.133.203]) by smtp.gmail.com with ESMTPSA id 9-20020a170902c20900b00198ea7e4bafsm5218196pll.92.2023.02.14.16.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 16:00:44 -0800 (PST) In-Reply-To: <87edqslpxa.fsf@web.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x629.google.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, 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:303293 Archived-At: > 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. I would like to second this. goto-chg is much more reliable for me as a jump command compared to pop-mark (C-u C-SPC). The common use-case is when I'm editing text and jump away to examine or copy text from a different part of the buffer. Since many motion commands set the mark, it can take several invocations of pop-mark to get back to where I was editing, sometimes a double digit number. In comparison, goto-last-change reliably brings me back immediately to where I was typing. I do this often enough (sometimes several times a minute) that setting a register each time before jumping is infeasible. The fact that it reuses undo information means there's no perceptible performance penalty either. Karthik