From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el Date: Sat, 06 Mar 2021 22:55:22 +0000 Message-ID: <7de1aeec528615c163d1@heytings.org> References: <87im69uzlt.fsf@mail.linkov.net> <878s74fv27.fsf@mail.linkov.net> <4119ea3055ef8f306fc0@heytings.org> <4119ea30557ef84ca190@heytings.org> <7eb7ee0f-7dba-c90d-cb58-af42c3828643@yandex.ru> <4119ea30554b406efbbf@heytings.org> <4119ea30558f1e4145b0@heytings.org> <4119ea30555e80bdcf7e@heytings.org> <1c82e582-8b90-f3c5-5391-1e88ca4e7ab2@yandex.ru> <4119ea30553e3f90ab8c@heytings.org> <08b51962-6305-5188-0bea-b17b4139646c@yandex.ru> <4119ea3055bd6f6d2e91@heytings.org> <7de1aeec52b5dcf97969@heytings.org> <18b76762-1f98-a69f-6f23-4e6b13ccf207@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46859@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 23:56: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 1lIfqD-0004Ci-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 23:56:09 +0100 Original-Received: from localhost ([::1]:33016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIfqC-0006yj-5x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 17:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIfq6-0006yQ-EO for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 17:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIfq6-0003mx-66 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 17:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIfq6-0004lf-45 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 17:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 22:56: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.161507132618283 (code B ref 46859); Sat, 06 Mar 2021 22:56:02 +0000 Original-Received: (at 46859) by debbugs.gnu.org; 6 Mar 2021 22:55:26 +0000 Original-Received: from localhost ([127.0.0.1]:38503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIfpV-0004ko-UJ for submit@debbugs.gnu.org; Sat, 06 Mar 2021 17:55:26 -0500 Original-Received: from heytings.org ([95.142.160.155]:46100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIfpT-0004kf-Og for 46859@debbugs.gnu.org; Sat, 06 Mar 2021 17:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1615071323; bh=Q7RWliDisgMgu9K6Fhs5ibWB1iB5kWm04O+eitp+ZAM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=iI6ux/1d1nVAp40UQcVzxJoV1BDIm4nOUY76Zg0FjGLtGxTdQy3gjMM2xXi6Mq5uO MWuuEa67zb4WDXuZhchQJ+BElxTn+49i6Idp7rbIyCXhywGvu7vvhjuFUdDyZwzBiK pfiY8+JcoNskVdsC9gCHGkvk0PPy+2UbO1AFVPUD0imYsdj8BPID1h1Z3Q36iy4wYA mnDzmqtIdUBHXsi6K3+OiXAr5ojdN6Zv1UY6Okku2tvLgBXKRnfzCXCKi+idxgJGwa QiYfTUrJySUzYFYFdvlJvPPI7m7jT3JNpgo3kmTjAKhO93Lt+5B93vKLdbOgw0MuKF u35ful7lycGqw== In-Reply-To: <18b76762-1f98-a69f-6f23-4e6b13ccf207@yandex.ru> 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:201696 Archived-At: > > Ah, ok. If ripgrep can do this as well, it would be more general (a good > thing). > Yes, indeed. > > Note that it mentions the following in the description of its -b > argument: > > If ripgrep does transcoding, then the byte offset is in terms of the > the result of transcoding and not the original data. This applies > similarly to another transformation on the source, such as > decompression or a --pre filter. Note that when the PCRE2 regex engine > is used, then UTF-8 transcoding is done by default. > As the manpage mentions, this transcoding is done by default _only_ when the PCRE2 regex engine is used, that is, when ripgrep was built with PCRE2 (the Debian package for example is built without PCRE2) and when the --pcre2 flag is passed. And even in that case it is possible to disable the transcoding with --no-encoding.