From unknown Fri Jun 20 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44409: Example in manual no longer works Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 05:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44409@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16043813339175 (code B ref -1); Tue, 03 Nov 2020 05:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 05:28:53 +0000 Received: from localhost ([127.0.0.1]:43162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZosG-0002Nv-Sf for submit@debbugs.gnu.org; Tue, 03 Nov 2020 00:28:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:46014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZosE-0002Nn-UW for submit@debbugs.gnu.org; Tue, 03 Nov 2020 00:28:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZosE-0008W0-OJ for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 00:28:50 -0500 Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]:58002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZosC-0006fU-Gc for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 00:28:50 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 01042121631 for ; Tue, 3 Nov 2020 05:28:45 +0000 (UTC) Received: from pdx1-sub0-mail-a27.g.dreamhost.com (100-98-64-6.trex.outbound.svc.cluster.local [100.98.64.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 930CE12042E for ; Tue, 3 Nov 2020 05:28:44 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a27.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Tue, 03 Nov 2020 05:28:44 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Interest-Ski: 3467ff62429ef17f_1604381324811_2383765150 X-MC-Loop-Signature: 1604381324811:758661443 X-MC-Ingress-Time: 1604381324810 Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 589E87F0EC for ; Mon, 2 Nov 2020 21:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=updIN2ryO/P0TxDKCn zgRT78qJ4=; b=QTudzZxhtoEg5IgEbQZEmkS5SgfQ29y+XChlX3q/GH+dg0pfV9 hJ2IKaL32gBqea7LSp7I0LKEzDdt0idLJ8Bq390J6CPDuUKMafE5dJkKkDJ/62q9 Dd65jB2jmDfggpyBd4OTH2VmS+eTvUGhVLZS6V8sVi1vJC2XlUYdMpmbA= Received: from jidanni.org (114-46-59-7.dynamic-ip.hinet.net [114.46.59.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id 23D4D7E697 for ; Mon, 2 Nov 2020 21:28:43 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a27 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Tue, 03 Nov 2020 13:28:41 +0800 Message-ID: <87mtzzj9fa.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.46; envelope-from=jidanni@jidanni.org; helo=cross.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 00:28:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) (info "(emacs) Grep Searching") Says For instance, you can chain =E2=80=98grep=E2=80=99 commands, like this= : ... But the example it then gives is for older emacs versions. Newer emacs versions' grep string contains "--null" (proof: try $ emacs -f grep ) which will cause the example to fail. How can one rewrite the example to work with newer emacs versions? From unknown Fri Jun 20 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44409: Example in manual no longer works Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 07:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44409@debbugs.gnu.org, jidanni@jidanni.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson , 44409@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160438782620009 (code B ref -1); Tue, 03 Nov 2020 07:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 07:17:06 +0000 Received: from localhost ([127.0.0.1]:43227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZqYz-0005Ce-Sy for submit@debbugs.gnu.org; Tue, 03 Nov 2020 02:17:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:38912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZqYy-0005CV-FN for submit@debbugs.gnu.org; Tue, 03 Nov 2020 02:17:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZqYy-0002GP-AP for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 02:17:04 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38797) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZqYx-0006Eq-Lf; Tue, 03 Nov 2020 02:17:03 -0500 Received: from [2a02:14f:1fe:933f::ad2b:d8fd] (port=43820) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kZqYw-0007zw-Mm; Tue, 03 Nov 2020 02:17:03 -0500 Date: Tue, 03 Nov 2020 09:16:58 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <87mtzzj9fa.5.fsf@jidanni.org> References: <87mtzzj9fa.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Eli Zaretskii Message-ID: <31F4D2BA-185A-484B-845D-8C812B2D9B30@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 (---) On November 3, 2020 7:28:41 AM GMT+02:00, "=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan = Jacobson" wrote: > (info "(emacs) Grep Searching") Says >=20 > For instance, you can chain =E2=80=98grep=E2=80=99 commands, like thi= s: =2E=2E=2E >=20 > But the example it then gives is for older emacs versions=2E >=20 > Newer emacs versions' grep string contains "--null" (proof: try > $ emacs -f grep > ) which will cause the example to fail=2E >=20 > How can one rewrite the example to work with newer emacs versions? I just tried the example in the manual with a recent version of Enacs, and= the example works just fine=2E So in what sense doesn't the example work = for you? And what is the significance of --null for this purpose? IOW, I see no reason to rewrite the example=2E From unknown Fri Jun 20 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44409: Example in manual no longer works In-Reply-To: <87mtzzj9fa.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 44409@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 44409@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160438967622990 (code B ref -1); Tue, 03 Nov 2020 07:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 07:47:56 +0000 Received: from localhost ([127.0.0.1]:43242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZr2j-0005yd-U8 for submit@debbugs.gnu.org; Tue, 03 Nov 2020 02:47:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:49062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZr2i-0005yV-A0 for submit@debbugs.gnu.org; Tue, 03 Nov 2020 02:47:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZr2i-0008Ox-0a for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 02:47:48 -0500 Received: from camel.birch.relay.mailchannels.net ([23.83.209.29]:33352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZr2g-0006wW-1P; Tue, 03 Nov 2020 02:47:47 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 34A3148136A; Tue, 3 Nov 2020 07:47:43 +0000 (UTC) Received: from pdx1-sub0-mail-a27.g.dreamhost.com (100-100-138-6.trex.outbound.svc.cluster.local [100.100.138.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B1A874819DD; Tue, 3 Nov 2020 07:47:42 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a27.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Tue, 03 Nov 2020 07:47:43 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tart-Wipe: 5f0d5d63448397dc_1604389662953_267622838 X-MC-Loop-Signature: 1604389662953:3984555928 X-MC-Ingress-Time: 1604389662952 Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 6CFB57F113; Mon, 2 Nov 2020 23:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=STmjdrnLTLxiDC5EW00iw80HUfM=; b=IkcsC/0OJHJDM SgGnMmvE7XKXZ0dYWGRM/tsCKRmpfjsjAf8Mc9xWVl0I+njWPk1aAD7UCuYSu/sc 7D+IKSqEGToW6Z/5h8aTyX61sIP/zGyz6RGJAfGGKWifmHWvt6owe7vHYjdLBwp1 4AVCP8cXNkMw5fTDzOSdMjtcYTmImc= Received: from jidanni.org (114-46-59-7.dynamic-ip.hinet.net [114.46.59.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id 0A0127F10D; Mon, 2 Nov 2020 23:47:41 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a27 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87mtzzj9fa.5.fsf@jidanni.org> <31F4D2BA-185A-484B-845D-8C812B2D9B30@gnu.org> Date: Tue, 03 Nov 2020 15:47:37 +0800 Message-ID: <87tuu6j2zq.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.209.29; envelope-from=jidanni@jidanni.org; helo=camel.birch.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 02:47:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) $ grep --color -nH --null -e a /etc/motd /etc/motd:2:The programs included with the Debian GNU/Linux system are free software; /etc/motd:3:the exact distribution terms for each program are described in the... $ grep --color -nH --null -e a /etc/motd | grep x Binary file (standard input) matches >>>>> "EZ" == Eli Zaretskii writes: EZ> And what is the significance of --null for this purpose? grep -nH -e is not the current emacs prompt. It is an older emacs prompt. The current emacs prompt is grep --color -nH --null -e You can verify this via $ emacs -f grep From unknown Fri Jun 20 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44409: Example in manual no longer works Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 11:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 44409@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 44409@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160440218810984 (code B ref -1); Tue, 03 Nov 2020 11:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 11:16:28 +0000 Received: from localhost ([127.0.0.1]:43582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZuId-0002r6-Q5 for submit@debbugs.gnu.org; Tue, 03 Nov 2020 06:16:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:49464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZuIb-0002qx-Np for submit@debbugs.gnu.org; Tue, 03 Nov 2020 06:16:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZuIb-0004lH-II for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 06:16:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41555) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZuIb-0002wG-4g; Tue, 03 Nov 2020 06:16:25 -0500 Received: from [2a02:14f:1fe:933f::ad2b:d8fd] (port=44658) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kZuIa-0003Ik-Dp; Tue, 03 Nov 2020 06:16:25 -0500 Date: Tue, 03 Nov 2020 13:16:18 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <87tuu6j2zq.5.fsf@jidanni.org> References: <87mtzzj9fa.5.fsf@jidanni.org> <31F4D2BA-185A-484B-845D-8C812B2D9B30@gnu.org> <87tuu6j2zq.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Eli Zaretskii Message-ID: <8CA5025D-C9C5-4371-9636-8A04A46D9806@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 (---) On November 3, 2020 9:47:37 AM GMT+02:00, "=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan = Jacobson" wrote: > $ grep --color -nH --null -e a /etc/motd > /etc/motd:2:The programs included with the Debian GNU/Linux system are > free software; > /etc/motd:3:the exact distribution terms for each program are > described in the=2E=2E=2E > $ grep --color -nH --null -e a /etc/motd | grep x > Binary file (standard input) matches The example in the manual doesn't mention /etc/motd of any other binary fi= le=2E It uses text files, where this issue doesn't exist=2E If you are seeking information for how to use Grep with binary files, you = should be looking in the Grep manual, not the Emacs manual=2E > >>>>> "EZ" =3D=3D Eli Zaretskii writes: > EZ> And what is the significance of --null for this purpose? >=20 > grep -nH -e >=20 > is not the current emacs prompt=2E It is an older emacs prompt=2E >=20 > The current emacs prompt is >=20 > grep --color -nH --null -e Yes, but you need to edit that prompt anyway in order to type the command = with a pipe, so the original prompt doesn't matter much=2E I see no problem here that needs tk be fixed=2E From unknown Fri Jun 20 20:03:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44409: Example in manual no longer works In-Reply-To: <87mtzzj9fa.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2020 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 44409@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 44409@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160444637928835 (code B ref -1); Tue, 03 Nov 2020 23:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 23:32:59 +0000 Received: from localhost ([127.0.0.1]:46798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nO-0007Uw-Tm for submit@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:58382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka5nL-0007Um-22 for submit@debbugs.gnu.org; Tue, 03 Nov 2020 18:32:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nK-0003D4-SO for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 18:32:54 -0500 Received: from dormouse.elm.relay.mailchannels.net ([23.83.212.50]:43422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka5nH-0005X4-0f; Tue, 03 Nov 2020 18:32:54 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4AFEF120D44; Tue, 3 Nov 2020 23:32:48 +0000 (UTC) Received: from pdx1-sub0-mail-a100.g.dreamhost.com (100-98-64-6.trex.outbound.svc.cluster.local [100.98.64.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D13D4121095; Tue, 3 Nov 2020 23:32:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a100.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Tue, 03 Nov 2020 23:32:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Print-Bottle: 0f7c1e8f06d54522_1604446368094_2956382007 X-MC-Loop-Signature: 1604446368094:3196475871 X-MC-Ingress-Time: 1604446368094 Received: from pdx1-sub0-mail-a100.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTP id 992AC7E4FD; Tue, 3 Nov 2020 15:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=wz24Ji0TrGMrkx5gKn8TIs1e3JU=; b=R3IQU9oh5RRdc 6rIHH6iAc4dz+X9vlUo3Vr75XNUN4vrbPB/MgKxRwlK3L7XvQ4HwyD3mpOcvGUTk xrRLyi1IB7GuWg2+dHIC76sGauM/Mrhz1byGyq0T5+kPAJt4lLz6Mr0TFoMxKote VnitILd0+GZOhXXfe9WP8v5QNTfTpY= Received: from jidanni.org (114-41-29-107.dynamic-ip.hinet.net [114.41.29.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a100.g.dreamhost.com (Postfix) with ESMTPSA id CBEAD7E4F0; Tue, 3 Nov 2020 15:32:46 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a100 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87mtzzj9fa.5.fsf@jidanni.org> <31F4D2BA-185A-484B-845D-8C812B2D9B30@gnu.org> <87tuu6j2zq.5.fsf@jidanni.org> <8CA5025D-C9C5-4371-9636-8A04A46D9806@gnu.org> Date: Wed, 04 Nov 2020 07:32:42 +0800 Message-ID: <87h7q6j9t1.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.212.50; envelope-from=jidanni@jidanni.org; helo=dormouse.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 18:32:48 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) >>>>> "EZ" == Eli Zaretskii writes: EZ> The example in the manual doesn't mention /etc/motd of any other binary file. It uses text files, where this issue doesn't exist. Since when is /etc/motd a binary file? If it were a binary file, the first grep, >> $ grep --color -nH --null -e a /etc/motd >> /etc/motd:2:The programs included with the Debian GNU/Linux system are free software; >> /etc/motd:3:the exact distribution terms for each program are >> described in the... would fail. But it doesn't. Only the second grep fails: >> $ grep --color -nH --null -e a /etc/motd | grep x >> Binary file (standard input) matches So we see the issue indeed exists with text files!! Double proof: $ file /etc/motd /etc/motd: ASCII text Thus we see that one cannot simply slap "| grep bar | grep toto" onto the end of a working grep command anymore! Back when the manual was written, one could. But not anymore. EZ> Yes, but you need to edit that prompt anyway in order to type the EZ> command with a pipe, so the original prompt doesn't matter much. No! In the past one could simply slap the pipe(s) on to the back. Now that no longer works. Therefore the example needs to be rewritten to make it work again. (Or specific instructions need to be given: "Be sure to remove any '--null' that emacs has stuck in, for this example to work.") From unknown Fri Jun 20 20:03:53 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: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#44409: closed (Re: bug#44409: Example in manual no longer works) Message-ID: References: <83v9elby87.fsf@gnu.org> <87mtzzj9fa.5.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 44409 X-Gnu-PR-Package: emacs Reply-To: 44409@debbugs.gnu.org Date: Wed, 04 Nov 2020 03:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1604460302-26342-1" This is a multi-part message in MIME format... ------------=_1604460302-26342-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44409: Example in manual no longer works 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 44409@debbugs.gnu.org. --=20 44409: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44409 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1604460302-26342-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44409-done) by debbugs.gnu.org; 4 Nov 2020 03:24:57 +0000 Received: from localhost ([127.0.0.1]:47061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka9Pt-0006qa-HO for submit@debbugs.gnu.org; Tue, 03 Nov 2020 22:24:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka9Pr-0006qJ-Tt for 44409-done@debbugs.gnu.org; Tue, 03 Nov 2020 22:24:56 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58719) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ka9Pm-0000rC-Jy; Tue, 03 Nov 2020 22:24:50 -0500 Received: from [176.228.60.248] (port=2746 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ka9Pi-0005wW-To; Tue, 03 Nov 2020 22:24:50 -0500 Date: Wed, 04 Nov 2020 05:24:40 +0200 Message-Id: <83v9elby87.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-Reply-To: <87h7q6j9t1.5.fsf@jidanni.org> (message from =?utf-8?B?56mN?= =?utf-8?B?5Li55bC8?= Dan Jacobson on Wed, 04 Nov 2020 07:32:42 +0800) Subject: Re: bug#44409: Example in manual no longer works References: <87mtzzj9fa.5.fsf@jidanni.org> <31F4D2BA-185A-484B-845D-8C812B2D9B30@gnu.org> <87tuu6j2zq.5.fsf@jidanni.org> <8CA5025D-C9C5-4371-9636-8A04A46D9806@gnu.org> <87h7q6j9t1.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44409-done Cc: 44409-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: -3.3 (---) > From: 積丹尼 Dan Jacobson > Cc: bug-gnu-emacs@gnu.org, 44409@debbugs.gnu.org > Date: Wed, 04 Nov 2020 07:32:42 +0800 > > >>>>> "EZ" == Eli Zaretskii writes: > > EZ> The example in the manual doesn't mention /etc/motd of any other binary file. It uses text files, where this issue doesn't exist. > > Since when is /etc/motd a binary file? I didn't say it was. > >> $ grep --color -nH --null -e a /etc/motd | grep x > >> Binary file (standard input) matches > > So we see the issue indeed exists with text files!! No, it exists if you use Grep incorrectly. > EZ> Yes, but you need to edit that prompt anyway in order to type the > EZ> command with a pipe, so the original prompt doesn't matter much. > > No! > > In the past one could simply slap the pipe(s) on to the back. > > Now that no longer works. > > Therefore the example needs to be rewritten to make it work again. The example already works without any changes, so it doesn't need to be rewritten. > (Or specific instructions need to be given: "Be sure to remove any > '--null' that emacs has stuck in, for this example to work.") That's the stuff for Grep manual, not for Emacs. So I don't see any problem here to fix, and I'm closing this bug report. ------------=_1604460302-26342-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Nov 2020 05:28:53 +0000 Received: from localhost ([127.0.0.1]:43162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZosG-0002Nv-Sf for submit@debbugs.gnu.org; Tue, 03 Nov 2020 00:28:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:46014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZosE-0002Nn-UW for submit@debbugs.gnu.org; Tue, 03 Nov 2020 00:28:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZosE-0008W0-OJ for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 00:28:50 -0500 Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]:58002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZosC-0006fU-Gc for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2020 00:28:50 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 01042121631 for ; Tue, 3 Nov 2020 05:28:45 +0000 (UTC) Received: from pdx1-sub0-mail-a27.g.dreamhost.com (100-98-64-6.trex.outbound.svc.cluster.local [100.98.64.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 930CE12042E for ; Tue, 3 Nov 2020 05:28:44 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a27.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Tue, 03 Nov 2020 05:28:44 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Interest-Ski: 3467ff62429ef17f_1604381324811_2383765150 X-MC-Loop-Signature: 1604381324811:758661443 X-MC-Ingress-Time: 1604381324810 Received: from pdx1-sub0-mail-a27.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTP id 589E87F0EC for ; Mon, 2 Nov 2020 21:28:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=updIN2ryO/P0TxDKCn zgRT78qJ4=; b=QTudzZxhtoEg5IgEbQZEmkS5SgfQ29y+XChlX3q/GH+dg0pfV9 hJ2IKaL32gBqea7LSp7I0LKEzDdt0idLJ8Bq390J6CPDuUKMafE5dJkKkDJ/62q9 Dd65jB2jmDfggpyBd4OTH2VmS+eTvUGhVLZS6V8sVi1vJC2XlUYdMpmbA= Received: from jidanni.org (114-46-59-7.dynamic-ip.hinet.net [114.46.59.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a27.g.dreamhost.com (Postfix) with ESMTPSA id 23D4D7E697 for ; Mon, 2 Nov 2020 21:28:43 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a27 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Example in manual no longer works Date: Tue, 03 Nov 2020 13:28:41 +0800 Message-ID: <87mtzzj9fa.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.46; envelope-from=jidanni@jidanni.org; helo=cross.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 00:28:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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: -2.4 (--) (info "(emacs) Grep Searching") Says For instance, you can chain =E2=80=98grep=E2=80=99 commands, like this= : ... But the example it then gives is for older emacs versions. Newer emacs versions' grep string contains "--null" (proof: try $ emacs -f grep ) which will cause the example to fail. How can one rewrite the example to work with newer emacs versions? ------------=_1604460302-26342-1--