From unknown Sun Jun 22 04:22:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60578: xref-query-replace-in-results doesn't replace truncated lines Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 60578@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167294138131525 (code B ref -1); Thu, 05 Jan 2023 17:57:02 +0000 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 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-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 unknown Sun Jun 22 04:22:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60578: xref-query-replace-in-results doesn't replace truncated lines Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 20:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , 60578@debbugs.gnu.org Received: via spool by 60578-submit@debbugs.gnu.org id=B60578.167294941913354 (code B ref 60578); Thu, 05 Jan 2023 20:11:01 +0000 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 Content-Language: en-US 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-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 unknown Sun Jun 22 04:22:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juri Linkov Subject: bug#60578: closed (Re: bug#60578: xref-query-replace-in-results doesn't replace truncated lines) Message-ID: References: <864jt4ruw9.fsf@mail.linkov.net> <865ydl3zi4.fsf@mail.linkov.net> X-Gnu-PR-Message: they-closed 60578 X-Gnu-PR-Package: emacs Reply-To: 60578@debbugs.gnu.org Date: Fri, 06 Jan 2023 07:32:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1672990323-13672-1" This is a multi-part message in MIME format... ------------=_1672990323-13672-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60578: xref-query-replace-in-results doesn't replace truncated lines which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60578@debbugs.gnu.org. --=20 60578: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60578 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1672990323-13672-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1672990323-13672-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1672990323-13672-1--