From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50067: Context menus Date: Thu, 26 Aug 2021 16:01:00 +0300 Message-ID: <838s0otl6b.fsf@gnu.org> References: <83sfz639lh.fsf@gnu.org> <8735r6ppf0.fsf@mail.linkov.net> <83o89u37gh.fsf@gnu.org> <87wnohx5zd.fsf@mail.linkov.net> <831r6p3lzc.fsf@gnu.org> <87o89sh96g.fsf@mail.linkov.net> <837dgg1hdg.fsf@gnu.org> <87mtpcf79p.fsf@mail.linkov.net> <83zgtcyp2k.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, mattiase@acm.org, juri@linkov.net, 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 Thu Aug 26 15:02:42 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 1mJF1m-0005CA-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 15:02:42 +0200 Original-Received: from localhost ([::1]:60510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJF1j-0007Ja-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 09:02:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJF18-0007HK-Go for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 09:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJF17-0002Yr-WC for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJF17-0008IJ-PV for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 09:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 13:02:01 +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.162998290431860 (code B ref 50067); Thu, 26 Aug 2021 13:02:01 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 26 Aug 2021 13:01:44 +0000 Original-Received: from localhost ([127.0.0.1]:48568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJF0l-0008Hi-Be for submit@debbugs.gnu.org; Thu, 26 Aug 2021 09:01:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJF0k-0008HT-29 for 50067@debbugs.gnu.org; Thu, 26 Aug 2021 09:01:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33022) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJF0U-00023f-TF; Thu, 26 Aug 2021 09:01:22 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4360 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJF0T-0000MR-Kp; Thu, 26 Aug 2021 09:01:22 -0400 In-Reply-To: (message from Dmitry Gutov on Tue, 24 Aug 2021 20:59:40 +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:212704 Archived-At: > Cc: alan@idiocy.org, mattiase@acm.org, homeros.misasa@gmail.com, > tkk@misasa.okayama-u.ac.jp, larsi@gnus.org, 50067@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 24 Aug 2021 20:59:40 +0300 > > >> An option to display the first match right away will be most > >> appreciated, thanks. > > Like compilation-auto-jump-to-first-error. > > So we even have a precedent, very good. > > Could you both check out the attached patch? > > Together with (setq xref-auto-jump-to-first-definition t) Thanks, this looks very handy, I will definitely use it. > Questions for feedback: > > 1. Does the new behavior work okay window management-wise (it does > occupy +1 window, after all)? Not sure I understand the question: we pop up an additional window when there are more than one candidate even without this option, so why do you say "+1 window"? Maybe you had some recipe in mind that I didn't try? > 2. Should this setting also extend to other commands like > xref-find-references? Not necessarily. Perhaps xref-auto-jump-to-first-definition should be tri-state, to allow users to request the same with xref-find-references as well?