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#75379: 30.0.93; project-find-regexp expects "C" or "en" locale Date: Mon, 6 Jan 2025 03:55:51 +0200 Message-ID: References: <86jzb96qul.fsf@gnu.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="36679"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 75379@debbugs.gnu.org To: Matthias Meulien , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 06 02:57:30 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 1tUcMz-0009Ks-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jan 2025 02:57:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUcMd-0000b2-T7; Sun, 05 Jan 2025 20:57:07 -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 1tUcMZ-0000Zm-3x for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 20:57:03 -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 1tUcMY-0000HE-SN for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 20:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=FJcFzXzBjAhfqDJQ0MuvYE7PQZ87VRy+KrJzyR0E8JY=; b=IFfjWBRcf432MKiYRCKqYWR4sIh+gS/BI79lsXy/6hsmP20gMa3EBLQHT6ipXQOWBjN0daKbikLIg4wNDRSF4xlqTUJ9vRhjBdFh1VD0iFOvqxePuJPs3r95RXLzrQtxWqf3lxMfBtTX7gpFvtisDVaHik67sSGqDHR/aHn9yxfFz83Bw8acask0iCshpx8zuzghvswbpEkIEQp2kSaDJVu5owdgnAfqoq2IZGXVflJoD7Ayu6Z3ZkNpJO/3je/CBDzZpNBI3ADoo7PN5QRH8iRwmbvIhoQc2WYm4PynlSNigrHu8/HzyJ2Yi+pSvCjopmpoDnanX0HIlDLkV/UoZg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUcMY-0002ij-G5 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 20:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2025 01:57:02 +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.173612856410374 (code B ref 75379); Mon, 06 Jan 2025 01:57:02 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 6 Jan 2025 01:56:04 +0000 Original-Received: from localhost ([127.0.0.1]:36113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUcLb-0002hG-S3 for submit@debbugs.gnu.org; Sun, 05 Jan 2025 20:56:04 -0500 Original-Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]:55451) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUcLY-0002gf-Uc for 75379@debbugs.gnu.org; Sun, 05 Jan 2025 20:56:02 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 33E332540197; Sun, 5 Jan 2025 20:55:55 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Sun, 05 Jan 2025 20:55:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1736128555; x=1736214955; bh=FJcFzXzBjAhfqDJQ0MuvYE7PQZ87VRy+KrJzyR0E8JY=; b= TsgA9+qU7bBnI8k+wGLDTGLfVpjgYg5ZjncTY0kmMvLmDs+JnMpZrHJPnalX5URz EaWY96OprBjeCFhovoJg0vxEBEuKGxS6tb8iQF+DFtQjLjqAqoWjEqP39gw2AhZI nNJe8jDPkjuQI+CAEDIb6m7EMiAq848bwm3sqcgvs65++ypM0Qs0z75hMZ0vPS2X 1sxG4hrxsxIkhlrE94XW2f18GV/b9J6USKcnhE9TPaYrKkRymnuh66j5pz2CNXZ1 D/LXdVQJCUgj8S3ZV+TnIJb5CUV8tonYUFTlRvEP/AzBPGTzQP/AP50TwUm/hasE hGA1ktYzOet6Gg9QvVPUoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1736128555; x= 1736214955; bh=FJcFzXzBjAhfqDJQ0MuvYE7PQZ87VRy+KrJzyR0E8JY=; b=n bFSHK68ck02SQJ1qgloisfWAeSJQNS3Wt1BsIHayRgoVcePusYnxDqSDc/yrMQMc q9jWM7HI5wA8EsKPRyzieNfJ2HXty0iWE8q9FVsDIkm0r5W6kYo9JYZ5z26abJGe RsOx9ZzjycHx2vv+t1L6JAf1pfhU085ngVcWzvucDGTMlsgWzDTGlNQsAhaLkgY7 ALGR3I5sy/6GSnL7Ix2epaav60FFXLDTO/sFlgzlZMxCvLQO6uf14fGHT/7VzhdF jMZGKfSCPy1f1JJ5drsKuckWcrS78tJP5/0hvLPRo78itSVXaLFQ1fM4JwEh40pJ Xx5Kxh3bWfW631F+j6fAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefledggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveeg tedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehorhhonhhtvggvsehgmhgrih hlrdgtohhmpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeeh feejleesuggvsggsuhhgshdrghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Jan 2025 20:55:53 -0500 (EST) Content-Language: en-US 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:298625 Archived-At: On 05/01/2025 23:22, Matthias Meulien wrote: > > I am not familiar with all grep options but I saw that: > > ‘-I’ >      Process a binary file as if it did not contain matching data; this >      is equivalent to the ‘--binary-files=without-match’ option. > > Just tested > >   (setq xref-search-program-alist '((grep . "xargs -0 grep --null - > snHE -I -e ")) > > and it works fine on my side. Thanks, this is a solid proposal, but as per comment: ;; TODO: Show these matches as well somehow? we would probably want to print these weird matches as well, in the future. As you mention, search programs have a flag which avoids printing these matches, but in certain rare cases it might happen that a mostly text file is detected as binary - and then it seems preferable to print all of such matches in the buffer rather than ignore them. (Unless people disagree?) And yeah, it's an old comment, so this improvement is not high on the list, but whenever we (I/you/anybody else) get around to implementing it, we'd have to change the default entries in xref-search-program-alist again - and these get customized by users over the years, which means not everybody would get the fix together with the package's or Emacs's update. So a fix using other means would be better if feasible.