From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#75379: 30.0.93; project-find-regexp expects "C" or "en" locale Date: Mon, 06 Jan 2025 19:36:18 +0200 Organization: LINKOV.NET Message-ID: <871pxg3xu5.fsf@mail.linkov.net> References: <86jzb96qul.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 75379@debbugs.gnu.org, Eli Zaretskii , Matthias Meulien To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 06 18:51:31 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 1tUrGF-0008uS-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Jan 2025 18:51:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUrFo-0005UX-N1; Mon, 06 Jan 2025 12:51:04 -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 1tUrFm-0005Tq-MW for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 12:51:02 -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 1tUrFm-0006WT-E9 for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 12:51:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ICG3FqaiEoQelWv+DBrF70vL7y3ZzGSAGjue89aZJqE=; b=BzbkVdllmpOlvODczC0VUDl5U+PXB3pJ5ZS1ahLik9SVr2z55GrAfwwY9qEBAuiNAG+bKOrs5oet4cNmDkqjdm/rzcvWpASymbGyjs9JUHVIlzDQdjhSs9XYw1cDdt4oOmFDWEOxuCDNngPk6ODgkFsJN3J8IRcpIkf1Za6xwpjhIeJR6q8wTzNSwRc20Oy4CFvWlWrF2X2/m2XhXrqWwWoLsocj2NBwxhBLz/3YgDo3ztmxN4BhXygBOkqmaDq6O2/2IDA4Oz48IDOerC++tCBduN7/Ox/7dLLL7O36mHdNt0ZD0FtNP5rvvon4biew9YtW5dkeSs57o4oG38QVyA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUrFm-0001Jf-8W for bug-gnu-emacs@gnu.org; Mon, 06 Jan 2025 12:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2025 17:51: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.17361858224984 (code B ref 75379); Mon, 06 Jan 2025 17:51:02 +0000 Original-Received: (at 75379) by debbugs.gnu.org; 6 Jan 2025 17:50:22 +0000 Original-Received: from localhost ([127.0.0.1]:39949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUrF7-0001IK-KO for submit@debbugs.gnu.org; Mon, 06 Jan 2025 12:50:21 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56645) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUrF5-0001Hu-DM for 75379@debbugs.gnu.org; Mon, 06 Jan 2025 12:50:20 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 22AA81C0006; Mon, 6 Jan 2025 17:50:10 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Mon, 6 Jan 2025 03:55:51 +0200") X-GND-Sasl: juri@linkov.net 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:298679 Archived-At: > ;; 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?) Indeed, "Binary file matches" is a very important message that helps not to miss any matches in a text file that happens to accidentally contain a NUL byte. This saved me many times while using rgrep. 'project-find-regexp' could do the same, and show the same messages in the *xref* output buffer. So to not mess with translations, a simpler solution would be just to copy all unhandled messages from grep/ripgrep output to the xref buffer as is.