From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#46859: 28.0.50; [PATCH]: Add option to truncate long lines in xref.el Date: Sat, 6 Mar 2021 16:06:20 +0200 Message-ID: <18b76762-1f98-a69f-6f23-4e6b13ccf207@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17230"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: 46859@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 15:07: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 1lIXaH-0004NK-S8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 15:07:09 +0100 Original-Received: from localhost ([::1]:42788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIXaG-0006QJ-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 09:07:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIXaA-0006QB-2S for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIXa9-00020u-Rs for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:07:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIXa9-00045r-M8 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 14:07: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 Original-Received: via spool by 46859-submit@debbugs.gnu.org id=B46859.161503959115692 (code B ref 46859); Sat, 06 Mar 2021 14:07:01 +0000 Original-Received: (at 46859) by debbugs.gnu.org; 6 Mar 2021 14:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:36302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXZf-000451-FA for submit@debbugs.gnu.org; Sat, 06 Mar 2021 09:06:31 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:41720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXZd-00044m-VD for 46859@debbugs.gnu.org; Sat, 06 Mar 2021 09:06:30 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id f12so5627265wrx.8 for <46859@debbugs.gnu.org>; Sat, 06 Mar 2021 06:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=h1f8UAJvmoOpZK6rQJa/aobB1wxHgsxcvHo3bF22ius=; b=BakprGJKPef8EYHG/LQi1gyyWnyTsYY+hFXHTzSowWea+qWO3u4xtfMW5fJO3dP7ev +BL6CIPyt36Gm6pI3OHwP3sGko8BElMAvlVczDf+cWT9wFu5/cMFq3nmhLAemdvNGkr4 sJN6uDKF8d6sLnfTVVtv9QZQFn1qjdEfmySShHE3fgLwfCS/WFL/anMWBZRB/U4DzEoa vxIqkELZ/YupkP+0l6QI76O2mrB1TOqREeRlRxCh9umrc6G6E5CS+PQ+0cc6ZxXWrPxv cK+oxMXlp/6CSle0+5k/M+Sl4F6J07VYAQA/45UkN5jAR2oSP0mxH+yC3Ba0i6HeD0Nf cExg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=h1f8UAJvmoOpZK6rQJa/aobB1wxHgsxcvHo3bF22ius=; b=COjYWtjmX6vb92F5fn0hkTIKRMra5ijCL98wGmx1VcP1gSuzsqkJppAX4dY7Jbmk3Q 573RgzRXBbxwETsuo+vWMkcxHKPKdMd63xeYvnyLDN6N41MEXdSs9fZc/lAQi9Iok4UF 6wVn9+UtaGsVUGIctttEdZ8itAq/OGgIFfZAPqdgW0bEapnthORXel/zlA0W+n1ekTj1 +CECrmThnm1DLuVIX0c2prp8huj1O0893rU0cibu2O5Rsaezj/kcOY0AjQ3B549QHwEY vgXncXP2ayaRUrTK/EfY1jnp+cG8+evrJ05oR78IvxB4g4s/Nb5/YyrUy7ltU0jP8aTg LXnQ== X-Gm-Message-State: AOAM530TUkVePoqJSihXDn6NDRv2+B2ujcClm/Yyk5NK91ZMA3eNvVD6 O6AAsJvQO6X3FSbCP3pcRHw+TnnNwpA= X-Google-Smtp-Source: ABdhPJwPqSjhNKlwK/O58Yk/bJPL3PgDOMHFqVhvBRnS6sZF1q/035gBeF1QWl6pGMLeuiKs4Lp/NQ== X-Received: by 2002:adf:fb91:: with SMTP id a17mr14141226wrr.93.1615039584267; Sat, 06 Mar 2021 06:06:24 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g9sm9403766wrp.14.2021.03.06.06.06.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Mar 2021 06:06:23 -0800 (PST) In-Reply-To: <7de1aeec52b5dcf97969@heytings.org> Content-Language: en-US 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:201631 Archived-At: On 06.03.2021 14:58, Gregory Heytings wrote: >> What you're thinking of seems to require a Grep-specific version of >> xref--convert-hits logic, which in the end constructs specialized xref >> items with a new type of location (alternative to xref-file-location). >> > > Yes, that's what I'm thinking of indeed, but it's not specific to "grep" > because it would work the same way with ripgrep, ag and ack.  But indeed > it's specific to grep-like tools. Ah, ok. If ripgrep can do this as well, it would be more general (a good thing). 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.