From unknown Thu Jun 19 14:06:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60578 <60578@debbugs.gnu.org> To: bug#60578 <60578@debbugs.gnu.org> Subject: Status: xref-query-replace-in-results doesn't replace truncated lines Reply-To: bug#60578 <60578@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:06:25 +0000 retitle 60578 xref-query-replace-in-results doesn't replace truncated lines reassign 60578 emacs submitter 60578 Juri Linkov severity 60578 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 12:56:21 2023 Received: (at submit) by debbugs.gnu.org; 5 Jan 2023 17:56:21 +0000 Received: from localhost ([127.0.0.1]:52814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTU-0008CJ-Lo for submit@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:44998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDUTS-0008C9-Hq for submit@debbugs.gnu.org; Thu, 05 Jan 2023 12:56:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDUTS-0001pm-CC for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:56:18 -0500 Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDUTQ-0005GU-Kp for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 12:56:18 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 2A04B240003 for ; Thu, 5 Jan 2023 17:56:13 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: xref-query-replace-in-results doesn't replace truncated lines Organization: LINKOV.NET Date: Thu, 05 Jan 2023 19:52:59 +0200 Message-ID: <865ydl3zi4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4b98:dc4:8::230; envelope-from=juri@linkov.net; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 1. (setq xref-search-program 'ripgrep) 2. (setq xref-search-program-alist '((ripgrep . "xargs -0 rg -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e "))) where "-M 200 --max-columns-preview" is added to default settings. Then 'C-x p g' shows matches on truncated lines before the text "[... omitted end of long line]". But 'r' (xref-query-replace-in-results) skips these matches that are displayed on truncated lines. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 15:10:18 2023 Received: (at 60578) by debbugs.gnu.org; 5 Jan 2023 20:10:19 +0000 Received: from localhost ([127.0.0.1]:53019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDWZ8-0003TK-IA for submit@debbugs.gnu.org; Thu, 05 Jan 2023 15:10:18 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:45942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDWZ5-0003Sz-LW for 60578@debbugs.gnu.org; Thu, 05 Jan 2023 15:10:17 -0500 Received: by mail-wr1-f44.google.com with SMTP id h16so37186541wrz.12 for <60578@debbugs.gnu.org>; Thu, 05 Jan 2023 12:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=FJ4maxqFAtfOqQDg465JQnXhUXJm+i+1+w81eur/R80=; b=ixRmtJ5NP8Ul387KMuMfUicOTi6y4ww2CvMiMVWwHrOpA/bCJQht6UVH2EU5R5JwQ+ fTGThVKdwfd9NsR18m7LzbzryzjD7TlKFab0DzLNCGE5BPFvMpB7xyRPzcRMagUC8rju WmB2kHl6wz/PURuIMeP9TADv7KVvMBOwgFQAJL50duQiGyeAG1vUEAu3GPyoiQRTnJaP wX8becuiuOkIjnlvFIQmhqtVr61fal4LuYb3no+5chAVMzDu5yc3HtFSRxWhNjpVFle4 2jB6HZGTYLjNQh4lcQSE33bIF+lPlspdMSLMSEMzB3/fv3L27X0sEo/t5RHQbGcNn+AJ 2KDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FJ4maxqFAtfOqQDg465JQnXhUXJm+i+1+w81eur/R80=; b=uPc3lv46FZ+k7lpu1wJeyds6zrq+zquuAvOQ7JYfNIKlS/9zJ1LS11jCb9hiEMfWVf /FqayJsWa5HVeFapilFGZhZt/PCj1FXfFC7KZyM/FM0EeDJkh1C+ImfbzCmazQdF/hi1 /WP/bDRIsgu71VTX/ujYqhYI7S4zR22jVvF+wjL21myOdjeH3oars/1birQz1EGFmzX5 RGvaiQ1Wty+nURX8dcUAI1Mf4JLkXbUJq9zeoEa8jfu+nvjkD8VC4XIBjfcqmBvRz2nw iiwXNlwuLAg9oC/nsmq6cProbIEB7aezVcyMFo2UAZ6JqKhHpUQ5JIpGU911/XlMTIdr OjHw== X-Gm-Message-State: AFqh2kqvkPs+oMcM0YtbSAKKZl/KFH7P/zN5ohXac3YJmigoOu5W1wBb u9cznUTeqxGmV2wtcNti3X4= X-Google-Smtp-Source: AMrXdXt1v5OONPZtUJc6EV/kzRdM7HNTcZTT409rNmaU7RKJrpcielf2uezh+6U4rJt8r6D/yB/vqg== X-Received: by 2002:a5d:5259:0:b0:2ae:a029:ddba with SMTP id k25-20020a5d5259000000b002aea029ddbamr3396995wrc.2.1672949409749; Thu, 05 Jan 2023 12:10:09 -0800 (PST) Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i1-20020adfb641000000b002425787c5easm37700595wre.96.2023.01.05.12.10.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Jan 2023 12:10:09 -0800 (PST) Message-ID: <4bd2d9c1-76fe-e8a2-bdd4-def90cfe136e@yandex.ru> Date: Thu, 5 Jan 2023 22:10:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines Content-Language: en-US To: Juri Linkov , 60578@debbugs.gnu.org References: <865ydl3zi4.fsf@mail.linkov.net> From: Dmitry Gutov In-Reply-To: <865ydl3zi4.fsf@mail.linkov.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: 60578 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) Hi! On 05/01/2023 19:52, Juri Linkov wrote: > 1. (setq xref-search-program 'ripgrep) > 2. (setq xref-search-program-alist '((ripgrep . > "xargs -0 rg -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e "))) > > where "-M 200 --max-columns-preview" is added to default settings. > Then 'C-x p g' shows matches on truncated lines before the text > "[... omitted end of long line]". > > But 'r' (xref-query-replace-in-results) skips these matches > that are displayed on truncated lines. What if you remove "-M 200 --max-columns-preview" from the invocation arguments, and instead customize xref-truncation-width to whatever value you want? E.g. the same -- 200. Does replacement work then? From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 06 02:31:55 2023 Received: (at 60578-done) by debbugs.gnu.org; 6 Jan 2023 07:31:55 +0000 Received: from localhost ([127.0.0.1]:53663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDhCl-0003Y8-4d for submit@debbugs.gnu.org; Fri, 06 Jan 2023 02:31:55 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:60393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDhCi-0003Xf-LP for 60578-done@debbugs.gnu.org; Fri, 06 Jan 2023 02:31:53 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id BE5CA240008; Fri, 6 Jan 2023 07:31:45 +0000 (UTC) From: Juri Linkov To: Dmitry Gutov Subject: Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines In-Reply-To: <4bd2d9c1-76fe-e8a2-bdd4-def90cfe136e@yandex.ru> (Dmitry Gutov's message of "Thu, 5 Jan 2023 22:10:07 +0200") Organization: LINKOV.NET References: <865ydl3zi4.fsf@mail.linkov.net> <4bd2d9c1-76fe-e8a2-bdd4-def90cfe136e@yandex.ru> Date: Fri, 06 Jan 2023 09:30:04 +0200 Message-ID: <864jt4ruw9.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60578-done Cc: 60578-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 1. (setq xref-search-program 'ripgrep) >> 2. (setq xref-search-program-alist '((ripgrep . >> "xargs -0 rg -M 200 --max-columns-preview --null -nH --no-heading --no-messages -g '!*/' -e "))) >> where "-M 200 --max-columns-preview" is added to default settings. >> Then 'C-x p g' shows matches on truncated lines before the text >> "[... omitted end of long line]". >> But 'r' (xref-query-replace-in-results) skips these matches >> that are displayed on truncated lines. > > What if you remove "-M 200 --max-columns-preview" from the invocation > arguments, and instead customize xref-truncation-width to whatever value > you want? E.g. the same -- 200. > > Does replacement work then? Thanks for suggestion, I used "-M 200" when even xref-truncation-width was still quite slow, but now with long-line-optimizations there should not be such problems anymore. So closing. From unknown Thu Jun 19 14:06:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Feb 2023 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator