From unknown Mon Aug 18 17:59:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 02:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 54177@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164592992217362 (code B ref -1); Sun, 27 Feb 2022 02:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2022 02:45:22 +0000 Received: from localhost ([127.0.0.1]:56619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9Yn-0004Vy-Pk for submit@debbugs.gnu.org; Sat, 26 Feb 2022 21:45:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:33368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9Ym-0004Vr-HD for submit@debbugs.gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO9Ym-0001CA-9v for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: from [2a00:1450:4864:20::333] (port=38548 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO9Yk-0007ic-JC for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: by mail-wm1-x333.google.com with SMTP id 10-20020a05600c26ca00b003814df019c2so1035037wmv.3 for ; Sat, 26 Feb 2022 18:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:to:subject :content-language:from:content-transfer-encoding; bh=sUncxTSoeOgqHu5MrjY29Dd5O++A3ejMncN8cEJgSlw=; b=Vzy5kVkqgpoySZFTxWp0rGi7MM7y5wmvxsw+v94d8DoT0KtahvoT0Z8WKvc5pIoe5D LmC+xuD4i2SGTMzO6az15WgPEx8p/dJ1ofwBPXWGNLO5zNMyTNP26T+4XqcTSc+tPxxq QHR/RfgTzHQW8WhIvBxN0K+e/Vb9yaa+/rsG1Wq1cnmclQZEp/bCWdz/FH1fHd6UA02M OuJqrrQxEM7UNr5NgpRtnllrPowBfXEmygOM+kJU0WtTEQdwI28WpxY/90X+nRvDHApX eafp8IYR/TngpmQI5yimWt+zRNZWgBz1TD2P4C0UZ3Qd4lrIM9P+UMhW7rG2/ONmVK0N rVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :to:subject:content-language:from:content-transfer-encoding; bh=sUncxTSoeOgqHu5MrjY29Dd5O++A3ejMncN8cEJgSlw=; b=XPNJhpvmlVoO/k7tJ4QzOxo936F8xbxsGUbG2DQ87vUekEek8fltO6pH+H0QHzrWz3 VpuntKJPuwqvamwAI4M6TIRvU449vO/UHb/MIrdCRIOv8uL6H2gnDLHS8B1kwQ/W9QJK mOufp9kCNDm5fK+ITuT/JWMUgUkPloeRh4gUiOWYCizL0f+BYmiG2ZzyixHeEuPwdOFz Ovoux0awoALQBXQsJYyy52OHVS1pnbPdxYWEa4tlyxWN88+/FETXG2cgpbwQbWr1Cj5B ofo/K6CYmiY1IKu4RfpKYqzOhNxHl2cbIDlkDkvscjmtxvsPpIi3ooh+vWCAunGyshMl 9GAg== X-Gm-Message-State: AOAM533THd81LF1BRub3yoE26S2zXZgyOTJd6TOJIj+7RlegXTuUKmUx 3wXxxVgFtFxWO/YEW1BTnLedHPb1FyQ= X-Google-Smtp-Source: ABdhPJwHXoWSv5adbO0KOgvg5qutRQcwfWpwhRKU+Fv8LWPTThSBpcSXPnOfumiFuj/96/yucXjJnQ== X-Received: by 2002:a05:600c:651:b0:381:3d7b:40e0 with SMTP id p17-20020a05600c065100b003813d7b40e0mr7306504wmm.17.1645929916448; Sat, 26 Feb 2022 18:45:16 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g17-20020a5d5411000000b001e688b4ee6asm7266846wrv.35.2022.02.26.18.45.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 18:45:16 -0800 (PST) Message-ID: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> Date: Sun, 27 Feb 2022 04:45:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US From: Dmitry Gutov Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=raaahh@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) 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.8 (-) It shows only one match per file, apparently because the process invocations over the 'sudo' transport are recognized as working in a terminal. At least by ripgrep. To repro: 1. (setq xref-search-program 'ripgrep) 2. C-x C-f /sudo:dgutov@localhost:vc/emacs/ RET 3. M-x project-find-regexp RET associative RET 4. Note seeing only one match per file. FWIW, the fix is really simple: diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 0ee7dd5cad..2fd5e19237 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1626,7 +1626,7 @@ xref-search-program-alist (ripgrep . ;; '!*/' is there to filter out dirs (e.g. submodules). - "xargs -0 rg --null -nH --no-messages -g '!*/' -e " + "xargs -0 rg --null -nH --no-heading --no-messages -g '!*/' -e " )) "Associative list mapping program identifiers to command templates. Is this okay for Emacs 28? The problem might affect other Tramp transports as well (for all I know), or maybe even other platforms. The risk for the fix seems minimal. From unknown Mon Aug 18 17:59:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 07:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 54177@debbugs.gnu.org Received: via spool by 54177-submit@debbugs.gnu.org id=B54177.164594712519869 (code B ref 54177); Sun, 27 Feb 2022 07:33:01 +0000 Received: (at 54177) by debbugs.gnu.org; 27 Feb 2022 07:32:05 +0000 Received: from localhost ([127.0.0.1]:56767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOE2H-0005AP-3m for submit@debbugs.gnu.org; Sun, 27 Feb 2022 02:32:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOE2F-00059r-7Q for 54177@debbugs.gnu.org; Sun, 27 Feb 2022 02:32:04 -0500 Received: from [2001:470:142:3::e] (port=45760 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOE29-0003Cx-SQ; Sun, 27 Feb 2022 02:31:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4IT+BQHH/nv1o94tKOrBhY/H15kYJDUkfWBoohQhYoc=; b=oM5ziGeWRqHL BfZbWYovVSifSO+TGYR5iAvVAsaMKXbJGTqdkHoCl6ziHaSJaMSb8jDQqPYqtVWH8wKkp5PjGUf8L ZEwmE6S8UlZt+tWl6sb4bO8X1lhEo7vGeQ5tyUnGC2f4+Q/DZNX518gQ+VoDEGN0ZOAcBsrb1gBN7 0PhW+CcidSDpPuVqjkMlcDkV7J6G+gcBZzvGMi6Nlofp3pcT1EcjhfiyN6/YpIPRqMMMyc33QzKsk 5D3DI1Ghz9hXG2SrOHGiDRkA43xpqSbpmQXGtIUaV2NR6ahH8pTNHHn+cgfrNYiWWstPEgamm3Xx4 LY4ph4Oji5qJ9FJYI5tH5Q==; Received: from [87.69.77.57] (port=1691 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOE29-00020q-Ax; Sun, 27 Feb 2022 02:31:57 -0500 Date: Sun, 27 Feb 2022 09:31:44 +0200 Message-Id: <83y21wojdr.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> (message from Dmitry Gutov on Sun, 27 Feb 2022 04:45:14 +0200) References: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> X-Spam-Score: -2.3 (--) 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: -3.3 (---) > Date: Sun, 27 Feb 2022 04:45:14 +0200 > From: Dmitry Gutov > > --- a/lisp/progmodes/xref.el > +++ b/lisp/progmodes/xref.el > @@ -1626,7 +1626,7 @@ xref-search-program-alist > (ripgrep > . > ;; '!*/' is there to filter out dirs (e.g. submodules). > - "xargs -0 rg --null -nH --no-messages -g '!*/' -e " > + "xargs -0 rg --null -nH --no-heading --no-messages -g '!*/' -e > " > )) > "Associative list mapping program identifiers to command templates. > > Is this okay for Emacs 28? Is this additional switch supported by all versions of 'rg'? From unknown Mon Aug 18 17:59:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 13:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 54177@debbugs.gnu.org Received: via spool by 54177-submit@debbugs.gnu.org id=B54177.164596727729255 (code B ref 54177); Sun, 27 Feb 2022 13:08:01 +0000 Received: (at 54177) by debbugs.gnu.org; 27 Feb 2022 13:07:57 +0000 Received: from localhost ([127.0.0.1]:57020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJHJ-0007bn-8b for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:07:57 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:44888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJHG-0007ba-SM for 54177@debbugs.gnu.org; Sun, 27 Feb 2022 08:07:55 -0500 Received: by mail-wr1-f48.google.com with SMTP id u1so11393561wrg.11 for <54177@debbugs.gnu.org>; Sun, 27 Feb 2022 05:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=h+4yfXQ34Cc65X5B5yOHaYIOC7txF4h0zxva3R/uOgA=; b=HXLpVDnHMS+Plo4aEHX0m7GlRScPLSUmS4xSuDsX/5CWSs461hOjRnxysUEoAa1gI+ /oLiK1HH9hYl9ExY5cRJ/pKHSMJnDqgcuJq6zX62rgZ6ThzyAPt+g6Exb0rN18Q630Hq Us3s3m2JmQqVYTi+N2TgJdLcfGCOhMd1Ax+6stvVV868h/9fFSmVRuT5uXq4tG5a3rTV DWgpfpZiw/oQVsgBz8cBEcfcb0amlXTwZXn4wwr5lWpvBgzLpBoLEkmF/lpqdftjIeaa B/Lo/wiU6x++VGt2zJmlLoYXd8bTsAV0miJYKAUlNFeucKW5PY83gXpdsxWqEirJFbDn HrLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=h+4yfXQ34Cc65X5B5yOHaYIOC7txF4h0zxva3R/uOgA=; b=y1G7xD5bjbR3B4AtDJYiBzhvVnafX2SuGG4g64aoOxMpbg6J4kjhPSvm6HFzYNzApS Zsa6bOXY+SEUa2jquwpc2VoUsIlEgTBIVaSpjdFAPdA736PhKn/eCxj8YZjV2rimGNZt DBWaIJqck5qZcJvRNDJFk5rHiXxwGBpCgoe8tdC+S4i4i0t3KNziRysZfSc53uDwO8gF yXAVV143OMr7knPgePOsQdl1hCl4MPhsWNR27IqRjqP6utk35uO10KARNShfSX6x+aoT dS3mqWq2lGfQESbeMLcXxhA5Lg/9FimIqupuCvKGd0XlzPZgGHT5Gydk4uNSXtKiBry7 8rUA== X-Gm-Message-State: AOAM530/fHRbpCgKfHKg4EBokM+Ffqz31A0PFxIVmuThumroPqTCJWID W96gUDFTwZXl8zCTqVnzoHg= X-Google-Smtp-Source: ABdhPJx7sgP+/dviDX28q2KXkuhdFqqvGtCuesOfL4LLMWAuItGcK8Uj8E6JlhIaoVcIFWBou1xujQ== X-Received: by 2002:adf:c3cc:0:b0:1ed:b641:6ee2 with SMTP id d12-20020adfc3cc000000b001edb6416ee2mr12569070wrg.529.1645967268731; Sun, 27 Feb 2022 05:07:48 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id e6-20020a5d5006000000b001e75916a7c2sm7694952wrt.84.2022.02.27.05.07.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 05:07:48 -0800 (PST) Message-ID: Date: Sun, 27 Feb 2022 15:07:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US References: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> <83y21wojdr.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83y21wojdr.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) 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: -0.5 (/) On 27.02.2022 09:31, Eli Zaretskii wrote: > Is this additional switch supported by all versions of 'rg'? Yes, of course. It's been there from the beginning. From unknown Mon Aug 18 17:59:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 13:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 54177@debbugs.gnu.org Received: via spool by 54177-submit@debbugs.gnu.org id=B54177.16459678134141 (code B ref 54177); Sun, 27 Feb 2022 13:17:01 +0000 Received: (at 54177) by debbugs.gnu.org; 27 Feb 2022 13:16:53 +0000 Received: from localhost ([127.0.0.1]:57044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJPx-00014U-Bk for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:16:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJPv-0000zR-Hz for 54177@debbugs.gnu.org; Sun, 27 Feb 2022 08:16:52 -0500 Received: from [2001:470:142:3::e] (port=49934 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJPq-0003LJ-BM; Sun, 27 Feb 2022 08:16:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YJ4yhWZrsUXKUviZWeOrIqN4NZvZQrXmbC+ZLKmgcZA=; b=SM0KWc1p/2a4 +NQXlICt7o5C8vGmhfDOsgnqHtJEiu5q/t92teeXWCGlT5sqZsdrWTuOERDwv8mdScS/5s4QfMaD+ etrXiNOkjhDIJm5nxfJFb6500y68XAj2G99WDgSY785OV5C7B/b9QHSb/yNh2yIROjSjJ8pzG7MtY Xjp1APgQ/6+ueZy7i3pfV+F3AZCXE22xMiAitPvgZeprFkYnGjkqy+pNN5BL4vrlP+Sn+Xe/tSUzM dkFMpu6Y/07gS8/qzrrB8evOklOGQGx9ZGHc5a5F1FCjbIrJPWfG2zbQ9o3P4p2/MDG8objA9dHoH Q2WS4Zk+QpwG2JXv+TS0AA==; Received: from [87.69.77.57] (port=3192 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJPo-0001DV-59; Sun, 27 Feb 2022 08:16:46 -0500 Date: Sun, 27 Feb 2022 15:16:31 +0200 Message-Id: <83h78ko3f4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Dmitry Gutov on Sun, 27 Feb 2022 15:07:46 +0200) References: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> <83y21wojdr.fsf@gnu.org> X-Spam-Score: -2.3 (--) 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: -3.3 (---) > Date: Sun, 27 Feb 2022 15:07:46 +0200 > Cc: 54177@debbugs.gnu.org > From: Dmitry Gutov > > On 27.02.2022 09:31, Eli Zaretskii wrote: > > Is this additional switch supported by all versions of 'rg'? > > Yes, of course. It's been there from the beginning. Then I'm okay with installing this on the release branch. Thanks. From unknown Mon Aug 18 17:59:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 54177@debbugs.gnu.org Received: via spool by 54177-submit@debbugs.gnu.org id=B54177.16459685357314 (code B ref 54177); Sun, 27 Feb 2022 13:29:02 +0000 Received: (at 54177) by debbugs.gnu.org; 27 Feb 2022 13:28:55 +0000 Received: from localhost ([127.0.0.1]:57076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJbb-0001tu-Is for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:28:55 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:35554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJba-0001th-5Q for 54177@debbugs.gnu.org; Sun, 27 Feb 2022 08:28:54 -0500 Received: by mail-wr1-f51.google.com with SMTP id b5so11519694wrr.2 for <54177@debbugs.gnu.org>; Sun, 27 Feb 2022 05:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RGmfMrjUaM9LMdH3XUAYUnFmGKDbf+ncoHGVYenHGTg=; b=YB1cgSUt6B7HHPi3iYL+/JlgzW5j0LL17qtveVt3oItkaMoJgt+/Tx6GSppZGJ77sB 9z3yQVbCw9nZ/ggq/jSUxEOy9EZWue5eGl7mqTzpK3iLUeHilMDQIZJeMOhLl8THSq6x yM3a3TlgD16AHcBUVB4yiPWy0dyt/JYwuMQsbI2f/lPqh+j6GLFwOfwiVqDyl/TEH0Ij qI39f7bZHlquvJryGsEjg2IKzlUDhyNag70wIg3MIHqRzZu1pPF4pBmdzlrBxXZuJLRi FWUN0fbMeHsF0HSLgZq7OU5BBObIjQ20kehB8QB6uHH5RDxJZMh7JOkXvmJq1n/OplmI iAOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=RGmfMrjUaM9LMdH3XUAYUnFmGKDbf+ncoHGVYenHGTg=; b=E4n6gBqdwas9tdKMR2R5EAcGAlzkgSZzuALpRgw8zZLeI45hT3JIdHqXn71ZfCjct0 vyc/ShPttWXbznTvdmbg1MiYkExVDfwoCS7LoTSgpCTb6nKjVRwZVNFCSf27dkcjYV7C DAK4OGOjrcOJlNKnO2TsFvswjnBAyYOeBcp2fZT6MxnaSizijaA3GGhPyta+npaqapOU cbHST6uPyEl/2ZTXi9Oo5k3JYIJiDVT3KJGR27MF+5cC9t9rDEgrvw4y5vtTwWwf+/yS zke82YTeUptSMzWB6ZbSOEP6A68q0yg18fWjcZb345VgjkxYGJ+12JfwWCCNe4iI5I4K 5BkA== X-Gm-Message-State: AOAM531be6akOkJXnV6J/6FHbqqPoMFDNT9cv7kNs0ln7Q9NJKKeIZFn hsLn8CikpRsaK/s9RPyDGnM= X-Google-Smtp-Source: ABdhPJxyxXkvJNRIeOqSXK8vS+fVh8h40Rpx2C5OaF9fnLtKoMULRIq0RzDDeUVxYzgcLT76nHhyEA== X-Received: by 2002:adf:dfc5:0:b0:1ef:7d78:3dbe with SMTP id q5-20020adfdfc5000000b001ef7d783dbemr6051528wrn.336.1645968528316; Sun, 27 Feb 2022 05:28:48 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k19-20020a05600c479300b00380e461a4d2sm15192820wmo.0.2022.02.27.05.28.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 05:28:47 -0800 (PST) Message-ID: <0a62e223-f9dc-e479-54d9-aa18a3f65156@yandex.ru> Date: Sun, 27 Feb 2022 15:28:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US References: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> <83y21wojdr.fsf@gnu.org> <83h78ko3f4.fsf@gnu.org> From: Dmitry Gutov In-Reply-To: <83h78ko3f4.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) 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: -0.5 (/) On 27.02.2022 15:16, Eli Zaretskii wrote: > Then I'm okay with installing this on the release branch. Thanks, done. From unknown Mon Aug 18 17:59:03 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: Dmitry Gutov Subject: bug#54177: closed (Re: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo) Message-ID: References: <6491e0ec-dc96-79e3-4901-5984cd8e4ce7@yandex.ru> <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> X-Gnu-PR-Message: they-closed 54177 X-Gnu-PR-Package: emacs Reply-To: 54177@debbugs.gnu.org Date: Sun, 27 Feb 2022 13:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1645969322-17167-1" This is a multi-part message in MIME format... ------------=_1645969322-17167-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo 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 54177@debbugs.gnu.org. --=20 54177: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54177 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1645969322-17167-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 54177-done) by debbugs.gnu.org; 27 Feb 2022 13:41:31 +0000 Received: from localhost ([127.0.0.1]:57104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJnn-0004SC-Dw for submit@debbugs.gnu.org; Sun, 27 Feb 2022 08:41:31 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:34586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJnl-0004S0-EN for 54177-done@debbugs.gnu.org; Sun, 27 Feb 2022 08:41:29 -0500 Received: by mail-wr1-f51.google.com with SMTP id d3so11541484wrf.1 for <54177-done@debbugs.gnu.org>; Sun, 27 Feb 2022 05:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=7AEWCVHZh4p8jFAwu+PsfFR5BZDVmKZxRkQ7B1mUr3A=; b=CVRSUaB3JYQrHa1gEUApoisJWTqWkMuQ3sG54+Il81Dd15NT5irhj1Sp+YludH4kf/ x9aGy7ylPztQCcCrptxfnmnYdpBn4fnklGDrgv7i2AKwq8ybOav0as0g9mbI8DQGqxDN lNIjuv1PggH0gZz/Q/Ng7kbUgbTQX1pve61EcaS0VIwqRMOAJY1VCPf4O8P/yZ/b7Ibs hhQxdVeFvYyqv07WHfZUChjjN5yTFYfHRg61YBqcmELhNTK6jgg4bOzMAgRiiV4nmeE2 5nisZxs3idvhN9RFJhcR0EM2GQvDcAIp/zoTg3wD+kz2AaBWte+c3W6HzkklURLGhr2X gPjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=7AEWCVHZh4p8jFAwu+PsfFR5BZDVmKZxRkQ7B1mUr3A=; b=0JhHaF689ar7+qEllI5apv5i0BMvPB1KDs1U78xQCwNll4DYBuZzgXNge3Atb1X8Vg LgYRArpl5HyFhFvlwt6aHt/rOgUn1NKeJj4V7OgON5Qgi80wsWUMBsDx6aHsSqLjg2VA tkFrLt62mhYkj8JP2OoAE3jaVXR29CS65kO8viI7GR58WHXqaoK4sLcMpXoGWF2hv8S0 23h48j4xI77kh2oZvpcSZhSPDxw2T5Z8qq7jsqM5cPkFU1GWO9PHlp5vhZohY82PLjKw X8fDCiwWPgp8CgEgQ7JyN8gCbaZ/KtK+I3k4cihnNWB2cziZSnIV24SpQMaDpj3+Efji i2pg== X-Gm-Message-State: AOAM532VMq6dYLWyxkL1Kbg3doK0CfdiHJ+KejLQ+Nu83aznaDb6LvxM OejdIXOKpSCsN9nO+U7n8CQ= X-Google-Smtp-Source: ABdhPJy4LjJ2NKdpD8+PrDOu3G4xJOzXfQaoNlVaglsiXqmnHi96AVEAAho9QDflnnto4jg4c+19ZQ== X-Received: by 2002:adf:db43:0:b0:1ef:7195:43cd with SMTP id f3-20020adfdb43000000b001ef719543cdmr8273553wrj.495.1645969283465; Sun, 27 Feb 2022 05:41:23 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id e22-20020adf9bd6000000b001eda1017861sm7742489wrc.64.2022.02.27.05.41.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Feb 2022 05:41:22 -0800 (PST) Message-ID: <6491e0ec-dc96-79e3-4901-5984cd8e4ce7@yandex.ru> Date: Sun, 27 Feb 2022 15:41:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: bug#54177: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Content-Language: en-US From: Dmitry Gutov To: Eli Zaretskii References: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> <83y21wojdr.fsf@gnu.org> <83h78ko3f4.fsf@gnu.org> <0a62e223-f9dc-e479-54d9-aa18a3f65156@yandex.ru> In-Reply-To: <0a62e223-f9dc-e479-54d9-aa18a3f65156@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 54177-done Cc: 54177-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: -0.5 (/) On 27.02.2022 15:28, Dmitry Gutov wrote: > On 27.02.2022 15:16, Eli Zaretskii wrote: >> Then I'm okay with installing this on the release branch. > > Thanks, done. > > > And closing. ------------=_1645969322-17167-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Feb 2022 02:45:22 +0000 Received: from localhost ([127.0.0.1]:56619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9Yn-0004Vy-Pk for submit@debbugs.gnu.org; Sat, 26 Feb 2022 21:45:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:33368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9Ym-0004Vr-HD for submit@debbugs.gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO9Ym-0001CA-9v for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: from [2a00:1450:4864:20::333] (port=38548 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO9Yk-0007ic-JC for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:45:20 -0500 Received: by mail-wm1-x333.google.com with SMTP id 10-20020a05600c26ca00b003814df019c2so1035037wmv.3 for ; Sat, 26 Feb 2022 18:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:to:subject :content-language:from:content-transfer-encoding; bh=sUncxTSoeOgqHu5MrjY29Dd5O++A3ejMncN8cEJgSlw=; b=Vzy5kVkqgpoySZFTxWp0rGi7MM7y5wmvxsw+v94d8DoT0KtahvoT0Z8WKvc5pIoe5D LmC+xuD4i2SGTMzO6az15WgPEx8p/dJ1ofwBPXWGNLO5zNMyTNP26T+4XqcTSc+tPxxq QHR/RfgTzHQW8WhIvBxN0K+e/Vb9yaa+/rsG1Wq1cnmclQZEp/bCWdz/FH1fHd6UA02M OuJqrrQxEM7UNr5NgpRtnllrPowBfXEmygOM+kJU0WtTEQdwI28WpxY/90X+nRvDHApX eafp8IYR/TngpmQI5yimWt+zRNZWgBz1TD2P4C0UZ3Qd4lrIM9P+UMhW7rG2/ONmVK0N rVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :to:subject:content-language:from:content-transfer-encoding; bh=sUncxTSoeOgqHu5MrjY29Dd5O++A3ejMncN8cEJgSlw=; b=XPNJhpvmlVoO/k7tJ4QzOxo936F8xbxsGUbG2DQ87vUekEek8fltO6pH+H0QHzrWz3 VpuntKJPuwqvamwAI4M6TIRvU449vO/UHb/MIrdCRIOv8uL6H2gnDLHS8B1kwQ/W9QJK mOufp9kCNDm5fK+ITuT/JWMUgUkPloeRh4gUiOWYCizL0f+BYmiG2ZzyixHeEuPwdOFz Ovoux0awoALQBXQsJYyy52OHVS1pnbPdxYWEa4tlyxWN88+/FETXG2cgpbwQbWr1Cj5B ofo/K6CYmiY1IKu4RfpKYqzOhNxHl2cbIDlkDkvscjmtxvsPpIi3ooh+vWCAunGyshMl 9GAg== X-Gm-Message-State: AOAM533THd81LF1BRub3yoE26S2zXZgyOTJd6TOJIj+7RlegXTuUKmUx 3wXxxVgFtFxWO/YEW1BTnLedHPb1FyQ= X-Google-Smtp-Source: ABdhPJwHXoWSv5adbO0KOgvg5qutRQcwfWpwhRKU+Fv8LWPTThSBpcSXPnOfumiFuj/96/yucXjJnQ== X-Received: by 2002:a05:600c:651:b0:381:3d7b:40e0 with SMTP id p17-20020a05600c065100b003813d7b40e0mr7306504wmm.17.1645929916448; Sat, 26 Feb 2022 18:45:16 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id g17-20020a5d5411000000b001e688b4ee6asm7266846wrv.35.2022.02.26.18.45.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 18:45:16 -0800 (PST) Message-ID: <09caba9f-d927-352c-3a34-a28a414a0236@yandex.ru> Date: Sun, 27 Feb 2022 04:45:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 To: bug-gnu-emacs@gnu.org Subject: 28.0.91; project-find-regexp misbehaves with ripgrep over tramp/sudo Content-Language: en-US From: Dmitry Gutov Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=raaahh@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) 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: -1.8 (-) It shows only one match per file, apparently because the process invocations over the 'sudo' transport are recognized as working in a terminal. At least by ripgrep. To repro: 1. (setq xref-search-program 'ripgrep) 2. C-x C-f /sudo:dgutov@localhost:vc/emacs/ RET 3. M-x project-find-regexp RET associative RET 4. Note seeing only one match per file. FWIW, the fix is really simple: diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 0ee7dd5cad..2fd5e19237 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -1626,7 +1626,7 @@ xref-search-program-alist (ripgrep . ;; '!*/' is there to filter out dirs (e.g. submodules). - "xargs -0 rg --null -nH --no-messages -g '!*/' -e " + "xargs -0 rg --null -nH --no-heading --no-messages -g '!*/' -e " )) "Associative list mapping program identifiers to command templates. Is this okay for Emacs 28? The problem might affect other Tramp transports as well (for all I know), or maybe even other platforms. The risk for the fix seems minimal. ------------=_1645969322-17167-1--