From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38797: 27.0.50; Feature request: provide the opposite of xref-pop-marker-stack Date: Mon, 25 Oct 2021 10:44:01 +0300 Organization: LINKOV.NET Message-ID: <877de1lfb2.fsf@mail.linkov.net> References: <06080F99-49F3-4936-A39A-D135F5ECCEE2@acm.org> <0c88bcef-f07d-5a38-fa7d-b0ddd048cb48@yandex.ru> <87ilxm27wz.fsf@mail.linkov.net> <87sfwqi7dd.fsf@mail.linkov.net> <4c25c196-ba72-b509-c5d7-f015c37009f8@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37808"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , yyoncho , 38797@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 09:57:33 2021 Return-path: Envelope-to: geb-bug-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 1meurM-0009g3-G8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 09:57:32 +0200 Original-Received: from localhost ([::1]:41670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meurK-0002UP-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 03:57:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meupu-0001Y9-8J for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58251) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meupt-0000LI-VM for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 03:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meupt-0004dp-Qj for bug-gnu-emacs@gnu.org; Mon, 25 Oct 2021 03:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Oct 2021 07:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38797-submit@debbugs.gnu.org id=B38797.163514853017801 (code B ref 38797); Mon, 25 Oct 2021 07:56:01 +0000 Original-Received: (at 38797) by debbugs.gnu.org; 25 Oct 2021 07:55:30 +0000 Original-Received: from localhost ([127.0.0.1]:41564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meupN-0004d3-Na for submit@debbugs.gnu.org; Mon, 25 Oct 2021 03:55:29 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:49427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meupM-0004cp-CH for 38797@debbugs.gnu.org; Mon, 25 Oct 2021 03:55:28 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5C7DE20012; Mon, 25 Oct 2021 07:55:19 +0000 (UTC) In-Reply-To: <4c25c196-ba72-b509-c5d7-f015c37009f8@yandex.ru> (Dmitry Gutov's message of "Mon, 25 Oct 2021 02:22:06 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218250 Archived-At: >>> That reminds me of a potential feature: saving the history of searches and >>> going back/forward between them, in the manner of help-go-back and >>> help-go-forward (maybe even with same keybindings). >>> >>> From that perspective, we could choose the names in advance. Either >>> >>> xref-go-back/forward and xref-history-back/forward >>> >>> or, I suppose >>> >>> xref-back-history/forward-history and xref-searches-back/forward >>> >>> ...something like that. >> I never had such a problem thanks to the customization >> that creates a new buffer for every search: >> (add-hook 'xref--xref-buffer-mode-hook 'rename-uniquely) > > It's a nice intermediate solution, but it would also be nice to be able to > quickly iterate across previous searches. No? This means adding another layer of complexity. Remember a mess of deciding how to switch next-error navigations from different searches? Switching multiple xref searches will have the same level of confusion. BTW, shouldn't xref-go-back/forward support next-error-function? ;-)