From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el Date: Tue, 02 Mar 2021 22:13:57 +0100 Message-ID: References: <87im69uzlt.fsf@mail.linkov.net> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32890"; mail-complaints-to="usenet@ciao.gmane.io" To: juri@linkov.net, 46859@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 02 22:22:12 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 1lHCT6-0008Qi-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 22:22:12 +0100 Original-Received: from localhost ([::1]:33072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHCT5-0005bE-2t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 16:22:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHCMA-0006xV-A8 for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 16:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHCM9-00032J-V3 for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 16:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHCM9-0005Yb-RC for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 16:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Mar 2021 21:15:01 +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 X-Debbugs-Original-To: Juri Linkov , "Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 46859@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161471965521293 (code B ref -1); Tue, 02 Mar 2021 21:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Mar 2021 21:14:15 +0000 Original-Received: from localhost ([127.0.0.1]:54367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHCLP-0005XM-6M for submit@debbugs.gnu.org; Tue, 02 Mar 2021 16:14:15 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHCLM-0005XE-QY for submit@debbugs.gnu.org; Tue, 02 Mar 2021 16:14:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHCLL-0005fv-1F for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 16:14:12 -0500 Original-Received: from out1.migadu.com ([2001:41d0:2:863f::]:35449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHCLD-0002vU-UY for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 16:14:10 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <87im69uzlt.fsf@mail.linkov.net> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=theo@thornhill.no; helo=out1.migadu.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:201241 Archived-At: Hi! Juri Linkov writes: > > I've customized 'xref-search-program-alist' that defines ripgrep > command line to contain additional options: > > -M 500 --max-columns-preview > Oh, right. That's pretty smart - and fast! > that truncates long lines of ripgrep output > after we discussed this in https://debbugs.gnu.org/44983 > I'm sorry - completely missed that bug, it seems. > 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. Thanks for linking to that thread, and sorry for the noise :) -- Theo