From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#75379: 30.0.93; project-find-regexp expects "C" or "en" locale Date: Sun, 5 Jan 2025 22:29:54 +0100 Message-ID: References: <86jzb96qul.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000292a8c062afc3735" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24911"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , 75379@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 22:32:28 2025 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 1tUYEW-0006MJ-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 22:32:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUYED-0004Lm-TJ; Sun, 05 Jan 2025 16:32:09 -0500 Original-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 1tUYEC-0004LZ-Ds for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 16:32:08 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUYEC-0001hs-1x for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 16:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=UP9ATejguYByPBW9gBFOYXKrHngTl9LrbvzqEime31U=; b=WKqzL7OIM3fRVodepjKmrCR5+DdKp0vIaQQUgdyHEz+Jy8feHoe1H1PjFPz74oGcXB+pw0Mo2uraiEsRu7EyYo12jcAKLDbKBXB6zKI/XCj9+2K/cQEMhUSboAgeO1Y/TiP8iGsOuAEu5x3oR12LLSSxvbc/HKqkhgcsNrj2FB76o01QwgHrXMzfnR42W0noczyMdMzZKTyTerQpgJxEb/hqYz7Shv4WaQ1D8Rie+8/3osQYoH91Ww526eSaqJC9VPKBxDluw8fYHebXJxPwU/J2oMX3GFow/wzkDhNMDBwe3dsjIzUOKLcYtCTYFsp5vzyZwQClYSvqWWdFcYLjCw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUYEB-00044w-8o for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 16:32:07 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 21:32:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75379 X-GNU-PR-Package: emacs Original-Received: via spool by 75379-submit@debbugs.gnu.org id=B75379.173611261514150 (code B ref 75379); Sun, 05 Jan 2025 21:32:05 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 5 Jan 2025 21:30:15 +0000 Original-Received: from localhost ([127.0.0.1]:35581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUYCM-0003gA-ES for submit@debbugs.gnu.org; Sun, 05 Jan 2025 16:30:14 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:57771) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tUYCK-0003bV-EG for 75379@debbugs.gnu.org; Sun, 05 Jan 2025 16:30:13 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-aa66c1345caso450439466b.3 for <75379@debbugs.gnu.org>; Sun, 05 Jan 2025 13:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736112606; x=1736717406; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UP9ATejguYByPBW9gBFOYXKrHngTl9LrbvzqEime31U=; b=Mi5IR4uY9yhyEq5Gh+VoYJXxr3Bw0jZoIfKxSfl1W13rL6FHpnqjB7fDKTi08nfbob WNoivwJNS//X9LNRDlWDLurzD9B4rbM0B6EQzLNlbk94ibMkwrw9w81iwsYUjVceKrKQ Iy9UIQ25mTHeKbBiC0afd8J4becOvTky3wOJNI2uWB7J3BAr+bDRyfLMNRdXGWENxnHV x7YbJujLGUwICYvi6wyRaJhlyUAthkAi7/vER6TwAW/V3fnto4Mu0bBS1gSIAIsnHq8h iM5YWlqWkAYFBpNo8OTSUPPXGtZMm2NIxpP1A/1T4npIXO2YHyxJotHoEVyaiFKuJbiH U5Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736112606; x=1736717406; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UP9ATejguYByPBW9gBFOYXKrHngTl9LrbvzqEime31U=; b=pAmeg0OStCXsfCFrCBrAnoaL1/gUVDogOYs7gikEVGQlCN+9qWCUqXI8JnztwCXvPc pRKa84iA/BkHX3oKXyircgUkSrgsNcHEMmrpDDiDF3sa5QM35z0AhmTr6K8S0pi9aQ6E qpTvivWWk6jimG93Y/Vy8/KUhgbe/H9hhZ50Lkw6IaAal7bF15sjksfTADgE4vo09qwx iG50o0hlqXjuJVxDP5nYR54+Luz4fgTiqZKQ2brI2CaB6a64JDE82dIzxpbzA/ohw/iS cQeGCnYiNm7fjJkjBh7wUjjpL2sA0bkph3DmijkLhcPgVty14jimlt/7aPxUXda9Gthh +iwg== X-Forwarded-Encrypted: i=1; AJvYcCUYamvIoLWZCVd2bfav/LmdgMOzlMPDm6WCbYGZoYNvzt++1B3BPvz9J5YhiH9HeB1Idwy07w==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxv3HYCxm1XtJ76mkjxciFtNMOTBR3/5bwqDJhv9ed790UfUgyS sArh+pmYxPg6FRTdN40joPjDsmPwaFrPkpaA8sIQ1kq254tmbzRo6HbKGzZuCBRyQOYMjR30RNF Zd6wZAmQcWUHq4dWdCEIGo4uOdgE= X-Gm-Gg: ASbGncsKokO0pV4eI19eMBazbzfCoYV0y302wjr0GjlD/tBvcmA6HjjRk3UKxF0Q/dj vOgN9KGQFGUrvjvj+wDzJ17+2qxJFalzqHbJ/uHlYEhqMCAVSJBSlFfKVpBw/XVjKR0vBlA== X-Google-Smtp-Source: AGHT+IGlf1Y1anZilQxt3Lk0tjTSC+Waih1nK2Ih93kLElXlzb8BQaS/mro0wqi5yC7k78RnuqTgi3EGP1L96BT6ZOI= X-Received: by 2002:a17:906:6a1b:b0:aa6:8dcb:3657 with SMTP id a640c23a62f3a-aac335076e8mr6264772266b.36.1736112605830; Sun, 05 Jan 2025 13:30:05 -0800 (PST) In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298615 Archived-At: --000000000000292a8c062afc3735 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable And the rg (ripgrep) manual page says: By default, ripgrep attempts to automatically skip binary files in order to improve the relevance of results and make the search faster. And ugrep support -I in with the same meaning as grep. Thus I propose to add both -I to grep and ugrep, remove the processing of search output for binary file messages, and extend doc string for users to be aware that the behavior has (slightly) changed. I can provide a patch in those lines if needed. Le dim. 5 janv. 2025 =C3=A0 22:22, Matthias Meulien a = =C3=A9crit : > Can't we instead have a database of these messages, like we do with >> the "password" prompts? >> > > I am not familiar with all grep options but I saw that: > > =E2=80=98-I=E2=80=99 > Process a binary file as if it did not contain matching data; this > is equivalent to the =E2=80=98--binary-files=3Dwithout-match=E2=80= =99 option. > > Just tested > > (setq xref-search-program-alist '((grep . "xargs -0 grep --null > -snHE -I -e ")) > > and it works fine on my side. > -- > Matthias > --=20 Matthias --000000000000292a8c062afc3735 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
And the rg (ripgrep) manual page says:
=
=C2=A0 By default, ripgrep attempts to automatically skip bi= nary files in order to improve the relevance of results and make the search= =C2=A0 faster.

And ugrep support -I in with the sa= me meaning as grep.

Thus I propose to add both -I = to grep and ugrep, remove the processing of search output for binary file m= essages, and extend doc string for users to be aware that the behavior has = (slightly) changed.

I can provide a patch in those= lines if needed.

Le=C2=A0dim. 5 janv. 2025 = =C3=A0=C2=A022:22, Matthias Meulien <orontee@gmail.com> a =C3=A9crit=C2=A0:
Can't we instead have a database of these messages, like we do with
the "password" prompts?

I am not familiar with all grep opti= ons but I saw that:

=E2=80=98-I=E2=80=99
= =C2=A0 =C2=A0 =C2=A0Process a binary file as if it did not contain matching= data; this
=C2=A0 =C2=A0 =C2=A0is equivalent to the =E2=80=98--binary-f= iles=3Dwithout-match=E2=80=99 option.

Just tes= ted

=C2=A0 (setq xref-search-program-alist = 9;((grep . "xargs -0 grep <C> --null -snHE -I -e <R>"= ))

and it works fine on my side.
--
Matthias


--
Ma= tthias
--000000000000292a8c062afc3735--