From unknown Tue Jun 17 20:15:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#77925 <77925@debbugs.gnu.org> To: bug#77925 <77925@debbugs.gnu.org> Subject: Status: Potential regression: grep buffer results showing null char Reply-To: bug#77925 <77925@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:15:35 +0000 retitle 77925 Potential regression: grep buffer results showing null char reassign 77925 emacs submitter 77925 Ship Mints severity 77925 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 19 14:13:01 2025 Received: (at submit) by debbugs.gnu.org; 19 Apr 2025 18:13:01 +0000 Received: from localhost ([127.0.0.1]:36971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6CgX-0005GR-18 for submit@debbugs.gnu.org; Sat, 19 Apr 2025 14:13:01 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36734) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6CgT-0005Fg-H6 for submit@debbugs.gnu.org; Sat, 19 Apr 2025 14:12:58 -0400 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 1u6CgI-0000hs-0T for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2025 14:12:47 -0400 Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u6CgE-00019h-Hi for bug-gnu-emacs@gnu.org; Sat, 19 Apr 2025 14:12:44 -0400 Received: by mail-ua1-x92c.google.com with SMTP id a1e0cc1a2514c-86c29c0acdfso973609241.3 for ; Sat, 19 Apr 2025 11:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745086361; x=1745691161; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tH1PgSl9R8cI33ynbyM/EwLc8tHQRAw/e/D8hKFCns0=; b=TazxNQ5w2dTWIZMgEmRbnyGVtq/jwR4HWGnszD5ssfl9E3BCng4zd6N8BJi/hg2ccp GWypgmT9oYqbkxzzPdrKcrnIxYNMJavwh1uvstoIGsc+ieqxQChU2dJ92V+lFFs26oO+ Mwjka0EebrgjfBYin7CgBzvf1VkhDTxLRoTGFq4qJgkhrWjrZ4g9cPUM52vHHi3J1DfF 3yWtTib7mDiCtrMHNQk4WHwu/DxQriXBVuLg8KMFISypMJONCftwGPlWoyOJJEdvCNI7 f99RC/BgCdFdzhTMBGFq7hvWBuU1IeqscOqQyqS8B0q8P0wXqhPUksryZItJFhfB3i3C 72GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745086361; x=1745691161; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tH1PgSl9R8cI33ynbyM/EwLc8tHQRAw/e/D8hKFCns0=; b=QRoJTsdfsniWO3haETOtOW/sNIZEA5sLPBSl9tzD5Zzg0qzZeECg2i83dkhQrWZLH2 t8EmsW1XMUAJki0+4cpXWVcR76MVn75ooA7T06zERgi8upEC7KKxsTh5ikxkoVGlNw6B 68/xA6qssYrUOUoPwr8WWwMZrzE+vrWj3SrqKUpoYuJsT7/qcYS8hy4KgO3u+3iwDW/Z YR3NOdcsnDM4ZGcb8bsMmNXC5sVvKOTHI7w8IIGIHSx56P3/QlyQzxCBFbU732y7SxRn rHGjRkuai0STU8WKAxL13m6k0i9sWudXliu4ddaaGxOD68xcLzGhqiZebH6CpFchIZ9D DU/A== X-Gm-Message-State: AOJu0Yx7eQMJUecEe8uIjNQEzlbVUQaQWonKZa2fsl1Vpo/NaZEnS252 MAbNCKBbrYKeVw5BsMhh2vOcT36WgnABR/IKamUoQQmVFrcUY4oBCCI3P18VejIC19QycnX6LAs r0iUHKPsjyBZNP5Vbi4LZezKvfQ09oSnP X-Gm-Gg: ASbGncv68j2CsdSOjKYg66ZH6Ni8YG06LxgzvrxvqmqAerRNm2qUqoB7muy/F1Yu9gK eDKUdtqQA9+obsFcKBfDmj3KiIwwK1OVpPlnxrHLahZuKsi3H5e5I5u14YksX1D+Ay/FA1v5/kp BvZlElzmdK6lDC+sM52IZRyQ== X-Google-Smtp-Source: AGHT+IEQHtzmXGwb1NoT/2zDaderMVheOBavlOVq9gAjIaN1NGz9RZXGD31XdIDZZAizEo9ghucLQLS6Ih2Z/FPCizM= X-Received: by 2002:a05:6102:311a:b0:4c4:e42c:38ba with SMTP id ada2fe7eead31-4cb80145a4bmr3732297137.13.1745086361070; Sat, 19 Apr 2025 11:12:41 -0700 (PDT) MIME-Version: 1.0 From: Ship Mints Date: Sat, 19 Apr 2025 14:12:29 -0400 X-Gm-Features: ATxdqUGjDgXoqdif_MZNOcnRtFdU0oLcgy6zJGE3ISqY4tY092ku3Xw94yESOwI Message-ID: Subject: Potential regression: grep buffer results showing null char To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000a775a00633259425" Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=shipmints@gmail.com; helo=mail-ua1-x92c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) --000000000000a775a00633259425 Content-Type: text/plain; charset="UTF-8" M-x grep grep -nH --null -i -e header-line *.el /dev/null -*- mode: grep; default-directory: "~/.emacs.d/emacs/lisp/" -*- Grep started at Sat Apr 19 14:09:03 bindings.el:572: (define-key map [header-line down-mouse-3] mode-menu-binding) Right here is a null char: bindings.el^@:572 (it is not pasteable into email). -Stephane --000000000000a775a00633259425 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
M-x=C2=A0grep
grep =C2=A0-nH --null -i -e header-line *.el /dev/null

-*- mode: grep; default-= directory: "~/.emacs.d/emacs/lisp/" -*-
Grep started at Sat Ap= r 19 14:09:03

bindings.el:572: =C2=A0 =C2=A0(define-key map [header-= line down-mouse-3] mode-menu-binding)

Right here is a null char: bindings.el^@:572 (= it is not pasteable into email).

-Stephane
--000000000000a775a00633259425-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 00:46:00 2025 Received: (at 77925) by debbugs.gnu.org; 20 Apr 2025 04:46:00 +0000 Received: from localhost ([127.0.0.1]:42800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6MZ6-0000tP-6K for submit@debbugs.gnu.org; Sun, 20 Apr 2025 00:46:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46470) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6MZ2-0000t4-Lg for 77925@debbugs.gnu.org; Sun, 20 Apr 2025 00:45:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6MYs-0006XW-C2; Sun, 20 Apr 2025 00:45:49 -0400 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=CagxG/9JoyllTpuIK80k4rsZa2WLQR1SKqghe2q0f5A=; b=NGkmq9V/UBFU ZBUSaeRfpu0ZsdYDqksH35CTtBb7IZSh63Rgz7vC4Z84+4dYrygFfBz9jI6WM8r5Rq2pOP1W9zQJL H9OqG7pdsW1HGMS8Z9ysL9owJ87OcM29Er+ZWqJXLbYN44mIwk8hry94eo4vmHtAFYVKfha6sCPRY wGYKj1B3Zk76BBfbKqyYdmg7WGJtEavQnF1KWni74jTYLSuXGD9+mwdWMalVJ7fr8Ir6RmcmLUrzF +A66lpFS5saCfLsCDPWEsBreDMF+leZ7e0rRTlylkphdSMh9RlrGukwARTBDuQejNAUcrKMKygQCL 29upwcewcUJ4xYUFuppJhA==; Date: Sun, 20 Apr 2025 07:45:42 +0300 Message-Id: <86o6wr785l.fsf@gnu.org> From: Eli Zaretskii To: Ship Mints In-Reply-To: (message from Ship Mints on Sat, 19 Apr 2025 14:12:29 -0400) Subject: Re: bug#77925: Potential regression: grep buffer results showing null char References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77925 Cc: 77925@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: -3.3 (---) > From: Ship Mints > Date: Sat, 19 Apr 2025 14:12:29 -0400 > > M-x grep > grep -nH --null -i -e header-line *.el /dev/null > > -*- mode: grep; default-directory: "~/.emacs.d/emacs/lisp/" -*- > Grep started at Sat Apr 19 14:09:03 > > bindings.el:572: (define-key map [header-line down-mouse-3] mode-menu-binding) > > Right here is a null char: bindings.el^@:572 (it is not pasteable into email). Doesn't happen on 2 systems I tried with the current master branch. Of course, I don't have your "~/.emacs.d/emacs/lisp/" directory, so maybe this depends on the actual files in a directory. Does this happen in the Emacs's lisp/ directory? Is this in "emacs -Q" on the master branch? "M-x grep" puts a display property on the null characters, showing them as ":". So why doesn't it happen in this case, and why there's a ":" _in_addition_ to the null character? From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 20 07:09:27 2025 Received: (at 77925) by debbugs.gnu.org; 20 Apr 2025 11:09:28 +0000 Received: from localhost ([127.0.0.1]:46060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6SY7-0004ms-JJ for submit@debbugs.gnu.org; Sun, 20 Apr 2025 07:09:27 -0400 Received: from mail-ua1-x932.google.com ([2607:f8b0:4864:20::932]:46334) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u6SY1-0004lF-Ow for 77925@debbugs.gnu.org; Sun, 20 Apr 2025 07:09:20 -0400 Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-86d2fba8647so2634553241.0 for <77925@debbugs.gnu.org>; Sun, 20 Apr 2025 04:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745147352; x=1745752152; 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=mJdqSz0nIyEmigAa33AIcONeK8FFLBCe9D3HTX8NNpI=; b=ZlFPjLD1WgS4Y1Zwq7Va4ZHSIADYjgbAu+UsH3G39FhTE4LBwiYn6C6CkBFNREVEUK y+zaDR93moaUDa2M29coOwSg45kY8iWEHe1O+5awtbYwu306wFF5PlYynD8EE90broV9 2EFP0nn105Wa8hYbztbKX4Pq0V6QQHmIcTUGxz5fM4IP//f9g+C3KIxn2iHgHHco1Ze8 ZN6Skruwwe0quma8rsv1ZUfSOctCir+KMmxdlVBUy79AYeX1E1EKnYuokcFyuSzRHg/h VK/nGFf/Ms5CZOIZ04rX9+GHSCKmaIO5onQv1ZMpwivq6W8z6UATSwLm/jG+gx/2e6wY Acjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745147352; x=1745752152; 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=mJdqSz0nIyEmigAa33AIcONeK8FFLBCe9D3HTX8NNpI=; b=Abv7ZJBKKLLOSGDX1sthFXrBSN1gvLdMFuRcRqbZO2hSRZjT5ab12likwYhNV4AzlR bkzv32JXKVabNsNt7mZ3PGjRBsmffucW0e64Pt6kSfid3zsmUocrIOJ1M1CZXwm/5aq7 pTZsUQpjGFLXh6s2SrWnayJss0WeuXG3wXJMH7NeoijjZz7l3Wkw/cS8SE/mI8rFllx1 25iUNPV7jDM1EEL7jnQyYq6XzYksMJ6s5sT+UuhfPX8L3HvPS0y/fMIRsgFiQNXX8RrC kp1A9/voLEwJjw1EnjzwVX0eUaxYqeoFR4EvmVVuvSyopRrp2Nr5Q3YJj7qEJuL2JmUv 4JVA== X-Gm-Message-State: AOJu0Ywgb+nOYKbNiWaGsnbdyvThKLz+IalmW21ALsqzeNY/AX1jrqk5 f7KsrDXy7IV8xsxrycJ176c0Zeqt0oMripTgPMxU86dR3L/7uLs796btwQgF+Ma4iXv6NImjHQv Ia/dI5Wair3tCpFl1YOIrB4Pzcs0= X-Gm-Gg: ASbGncvhr1pT0L/cdb3+7ujOU3vzfzUcz0TudXlJuc1QzosqyB+16lA0oCNJcPP+obD k9stz8AV3lEPWPT5B7sCl02168E7HPsuiVjoW5ibBuoPjwxvPOPV28dKBIDlwJUoTd44P4wBXb/ UKCc/3zt23GRmfwyF7ypTqcw== X-Google-Smtp-Source: AGHT+IH8nDFf2ZmXAccz5V7cDN/jcuSU1+1Q/wKeoeHuF/+4X0HFzJ6d3dQE3B3/mR61qtiknNxMGVRED6DDhDEgt3E= X-Received: by 2002:a05:6102:5f8d:b0:4bb:9b46:3f6f with SMTP id ada2fe7eead31-4cb800c23f3mr4794598137.1.1745147351879; Sun, 20 Apr 2025 04:09:11 -0700 (PDT) MIME-Version: 1.0 References: <86o6wr785l.fsf@gnu.org> In-Reply-To: <86o6wr785l.fsf@gnu.org> From: Ship Mints Date: Sun, 20 Apr 2025 07:09:00 -0400 X-Gm-Features: ATxdqUFMe6BqaY82ywQ-menYPuuJvIpyxz9F0Bu6-9-UgXVyfyBqUS6gorO36qc Message-ID: Subject: Re: bug#77925: Potential regression: grep buffer results showing null char To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000fd56e6063333c712" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77925 Cc: 77925@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.0 (-) --000000000000fd56e6063333c712 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 20, 2025 at 12:45=E2=80=AFAM Eli Zaretskii wrote= : > > From: Ship Mints > > Date: Sat, 19 Apr 2025 14:12:29 -0400 > > > > M-x grep > > grep -nH --null -i -e header-line *.el /dev/null > > > > -*- mode: grep; default-directory: "~/.emacs.d/emacs/lisp/" -*- > > Grep started at Sat Apr 19 14:09:03 > > > > bindings.el:572: (define-key map [header-line down-mouse-3] > mode-menu-binding) > > > > Right here is a null char: bindings.el^@:572 (it is not pasteable into > email). > > Doesn't happen on 2 systems I tried with the current master branch. > Of course, I don't have your "~/.emacs.d/emacs/lisp/" directory, so > maybe this depends on the actual files in a directory. Does this > happen in the Emacs's lisp/ directory? > > Is this in "emacs -Q" on the master branch? > > "M-x grep" puts a display property on the null characters, showing > them as ":". So why doesn't it happen in this case, and why there's a > ":" _in_addition_ to the null character? > I think that ":" was my typo, it was supposed to come after the line number= . The ^@ are escape-glyphs (which is fine) but weirdly show up only after I C-v. I repro'd on Emacs 30.1 also. The emacs subdir is a symlink to my git-controlled master working tree and the file names there are normal (and it's the precise build I was using at the time). It could be my config, so I'll dig into this more. --000000000000fd56e6063333c712 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Sun, Apr 20, 2025 at 12:45=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Ship Mints <shipmints@gmail.com>
> Date: Sat, 19 Apr 2025 14:12:29 -0400
>
> M-x grep
> grep=C2=A0 -nH --null -i -e header-line *.el /dev/null
>
> -*- mode: grep; default-directory: "~/.emacs.d/emacs/lisp/" = -*-
> Grep started at Sat Apr 19 14:09:03
>
> bindings.el:572:=C2=A0 =C2=A0 (define-key map [header-line down-mouse-= 3] mode-menu-binding)
>
> Right here is a null char: bindings.el^@:572 (it is not pasteable into= email).

Doesn't happen on 2 systems I tried with the current master branch.
Of course, I don't have your "~/.emacs.d/emacs/lisp/" directo= ry, so
maybe this depends on the actual files in a directory.=C2=A0 Does this
happen in the Emacs's lisp/ directory?

Is this in "emacs -Q" on the master branch?

"M-x grep" puts a display property on the null characters, showin= g
them as ":".=C2=A0 So why doesn't it happen in this case, and= why there's a
":" _in_addition_ to the null character?
I think= that ":" was my typo, it was supposed to come after the line num= ber.

=
The ^@ a= re escape-glyphs (which is fine) but weirdly show up only after I C-v.=C2= =A0 I repro'd=C2=A0on Emacs 30.1 also.=C2=A0 The emacs subdir is a syml= ink to my git-controlled master working tree and the file names there are n= ormal (and it's the precise build I was using at the time).

It could be my config, s= o I'll dig into this more.
--000000000000fd56e6063333c712--