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#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el Date: Wed, 03 Mar 2021 11:05:20 +0200 Organization: LINKOV.NET Message-ID: <878s74fv27.fsf@mail.linkov.net> References: <87im69uzlt.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="40680"; 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: 46859@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 10:35:07 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 1lHNuM-000ARj-T2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 10:35:06 +0100 Original-Received: from localhost ([::1]:43992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHNuL-0003EH-VX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 04:35:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHNpS-0007Un-Uv for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 04:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHNpS-0003hN-IY for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 04:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHNpS-0008WL-Dx for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 04:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46859 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46859-submit@debbugs.gnu.org id=B46859.161476379832717 (code B ref 46859); Wed, 03 Mar 2021 09:30:02 +0000 Original-Received: (at 46859) by debbugs.gnu.org; 3 Mar 2021 09:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:55145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHNpO-0008Vd-Al for submit@debbugs.gnu.org; Wed, 03 Mar 2021 04:29:58 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:58205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHNpK-0008VC-Tk for 46859@debbugs.gnu.org; Wed, 03 Mar 2021 04:29:57 -0500 X-Originating-IP: 91.129.96.116 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id A4DDA1C000B; Wed, 3 Mar 2021 09:29:47 +0000 (UTC) In-Reply-To: (Theodor Thornhill's message of "Tue, 02 Mar 2021 22:13:57 +0100") 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:201266 Archived-At: >> But maybe your new option would be easier to customize. > > Yeah, maybe. However, without benchmarking, it is quite clear that > adding your option is faster than my patch, since ripgrep has to search > the whole minified file. I assume it short circuits, so that results > are delivered quicker to emacs. Maybe this bug can be closed. Your new option is still necessary for the default case when 'xref-search-program' is 'grep' since GNU grep has no option to truncate output, so xref should do post-processing for grep.