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#49731: 28.0.50; Filter xref results by filename Date: Thu, 29 Jul 2021 20:43:00 +0300 Organization: LINKOV.NET Message-ID: <87tukdm4bn.fsf@mail.linkov.net> References: <030dbe6c-130d-e578-f50d-54e90bfa7cfa@yandex.ru> <7593e0f3-9399-ccf3-21de-b2ac79ae3730@yandex.ru> <87fsvyik4u.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="27354"; 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: Daniel =?UTF-8?Q?Mart=C3=ADn?= , 49731@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 29 19:58:50 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 1m9AIz-0006sO-6z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jul 2021 19:58:49 +0200 Original-Received: from localhost ([::1]:53736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9AIy-00050i-5a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jul 2021 13:58:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9AIE-0003FH-Oh for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2021 13:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9AIE-0000kB-Fs for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2021 13:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9AIE-0004aZ-64 for bug-gnu-emacs@gnu.org; Thu, 29 Jul 2021 13:58: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: Thu, 29 Jul 2021 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49731 X-GNU-PR-Package: emacs Original-Received: via spool by 49731-submit@debbugs.gnu.org id=B49731.162758146617606 (code B ref 49731); Thu, 29 Jul 2021 17:58:02 +0000 Original-Received: (at 49731) by debbugs.gnu.org; 29 Jul 2021 17:57:46 +0000 Original-Received: from localhost ([127.0.0.1]:58219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9AHy-0004Zu-3n for submit@debbugs.gnu.org; Thu, 29 Jul 2021 13:57:46 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:45881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9AHw-0004Zc-2U for 49731@debbugs.gnu.org; Thu, 29 Jul 2021 13:57:45 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id BEE75200005; Thu, 29 Jul 2021 17:57:35 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Thu, 29 Jul 2021 05:02:47 +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:210861 Archived-At: >> 1. while xref-find-references works fine in `emacs -Q`, >> I don't know why with my customization typing e.g. >> 'M-? isearch-lazy-highlight RET' reports >> "No references found for: isearch-lazy-highlight". > > Try and see which of the "tools" semantic-symref-perform-search ends > up using. Thanks for the pointers to semantic-symref-perform-search. It prepends "-n " to my customized pattern "rg -nH", so the arg "-n" is duplicated on the command line: `rg -n -nH` and signals the error: error: The argument '--line-number' was provided more than once, but cannot be used multiple times This error is caused by the bug in the command line parser used by ripgrep: https://github.com/clap-rs/clap/issues/2171 that was fixed only 6 months ago, so it will take much time before this fix will reach ripgrep, and this bug will be closed: https://github.com/BurntSushi/ripgrep/issues/1701 But even without duplicated "-n" semantic-symref-perform-search doesn't work with ripgrep because it doesn't find such pattern: \\\\\\(\\^\\\\\\|\\\\W\\\\\\)isearch-lazy-highlight\\\\\\(\\\\W\\\\\\|\\$\\\\\\) Maybe semantic-symref-perform-search could be improved to support ripgrep? Because without these two problems it works fine with ripgrep. >> 2. xref-find-apropos doesn't offer the identifier at point as its >> default, and after using it e.g. from the buffer isearch.el with >> 'C-M-. isearch-lazy-highlight RET' all its lines are concatenated >> on the same line in `emacs -Q`: > > Thanks for the report, should be fixed now. I confirm it's fixed, thanks. I suppose xref-find-apropos doesn't offer the identifier at point as its default because 'apropos' doesn't offer the default? But this is not a big problem.