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#50067: Context menus Date: Tue, 31 Aug 2021 19:56:36 +0300 Organization: LINKOV.NET Message-ID: <87fsupr1rv.fsf@mail.linkov.net> References: <83sfz639lh.fsf@gnu.org> <56454B2B-0250-4BC6-BC26-E1C5579ACF49@acm.org> <83eeanyrm5.fsf@gnu.org> <4BC1074D-DE75-4303-8385-B70BAACFCDA0@acm.org> <83czq7youc.fsf@gnu.org> <32ef6b91-107c-d7e5-b103-0ff062bf8ebd@yandex.ru> <83y28twahy.fsf@gnu.org> <7af845e0-1f19-61fc-65e0-b23fac3927aa@yandex.ru> <83v93wx5ny.fsf@gnu.org> <83r1ekwfrd.fsf@gnu.org> <871r6ki6aw.fsf@mail.linkov.net> <838s0otl6b.fsf@gnu.org> <0273902a-1f93-c643-da26-ab314d6d2db4@yandex.ru> <8335qvs8re.fsf@gnu.org> <835yvnkuwb.fsf@gnu.org> <87wno26qlo.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: alan@idiocy.org, mattiase@acm.org, homeros.misasa@gmail.com, tkk@misasa.okayama-u.ac.jp, larsi@gnus.org, 50067@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 31 19:26:21 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 1mL7Wf-00064m-9h for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 19:26:21 +0200 Original-Received: from localhost ([::1]:35312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL7Wd-0003tQ-OV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 13:26:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL77D-0005mD-Mi for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL77D-0004it-Ck for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL77D-00083x-Bh for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 13:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Aug 2021 17:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50067-submit@debbugs.gnu.org id=B50067.163042916930862 (code B ref 50067); Tue, 31 Aug 2021 17:00:03 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 31 Aug 2021 16:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:35327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL76b-00081d-Cv for submit@debbugs.gnu.org; Tue, 31 Aug 2021 12:59:29 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:22915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL76V-000819-Gw for 50067@debbugs.gnu.org; Tue, 31 Aug 2021 12:59:23 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id B291A240006; Tue, 31 Aug 2021 16:59:09 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Tue, 31 Aug 2021 15:24:50 +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:213114 Archived-At: >>>> All right. You still prefer the original patch, then? >>> Yes, the original patch satisfies my needs, AFAICT. It would be good >>> to hear from Juri as well, though. >> Sorry, I can't find the original patch. This bug#50067 collected >> so many different things, so it's now hard to find anything. > > Here it is: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50067#183 Oh, I thought there were two patches: the patch above and also the original patch. But it the above is the original patch, then I'd recommend to add more already discussed additions, so the new option could provide at least these choices: 1. 'jump': Jump to the first location by selecting its window; 2. 'show': Show the first item, but keep focus in the Xref window; 3. 'move': Move point to the first item in the Xref window without showing it (maybe this should be the default behavior). To be able to add later a similar variable for xref-find-references, the new variable for xref-find-definitions could be named accordingly with a name that refers to xref-find-definitions, for example, xref-find-definitions-auto-jump. Then later xref-find-references-auto-jump.