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: Fri, 20 Aug 2021 10:31:07 +0300 Organization: LINKOV.NET Message-ID: <87h7fkh8z8.fsf@mail.linkov.net> References: <74BC00E9-2509-47DA-9428-1523FF7F3B33@acm.org> <87v942pvcj.fsf@mail.linkov.net> <004A628A-99CC-4C62-8AE2-921C4C38D42A@acm.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2582"; 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: 50067@debbugs.gnu.org, Tak Kunihiro , tkk@misasa.okayama-u.ac.jp, Lars Ingebrigtsen , Alan Third To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 20 09:36:10 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 1mGz4T-0000Vx-Du for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 09:36:09 +0200 Original-Received: from localhost ([::1]:48948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGz4R-0007iG-Uh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Aug 2021 03:36:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGz2Q-0003jp-Kp for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 03:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGz2Q-0005pe-Du for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 03:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGz2Q-0004b8-Ag for bug-gnu-emacs@gnu.org; Fri, 20 Aug 2021 03:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Aug 2021 07:34:02 +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.162944478517586 (code B ref 50067); Fri, 20 Aug 2021 07:34:02 +0000 Original-Received: (at 50067) by debbugs.gnu.org; 20 Aug 2021 07:33:05 +0000 Original-Received: from localhost ([127.0.0.1]:32904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGz1V-0004Za-3h for submit@debbugs.gnu.org; Fri, 20 Aug 2021 03:33:05 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:36461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGz1S-0004YF-Hm for 50067@debbugs.gnu.org; Fri, 20 Aug 2021 03:33:03 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 3F920C0008; Fri, 20 Aug 2021 07:32:50 +0000 (UTC) In-Reply-To: <004A628A-99CC-4C62-8AE2-921C4C38D42A@acm.org> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Thu, 19 Aug 2021 16:22:39 +0200") 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:212253 Archived-At: >> Yes it works for elisp, because its xref backend is simplistic enough to >> just accept the symbol given as argument. An example of a package where >> it doesn't work is merlin which is rather more sophisticated and wants to >> find the exact context so that it can find the right definition, so it >> ignores the argument. > > Having actually read the doc strings I see that xref backends are supposed > to define `xref-backend-identifier-at-point` which can stuff any > information it needs in a property of the string it returns, as sort of > a semi-covert channel to `xref-backend-definitions` etc. Sorry about the > unfounded complaint. > > Would adding `xref-find-references-at-mouse` be handy for use in the context menu? If the existing `xref-backend-identifier-at-point` can't be reused by adding a new optional arg `click`, then a cleaner solution would be to add `xref-backend-identifier-at-mouse` indeed.