GNU bug report logs - #44409
Example in manual no longer works

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 3 Nov 2020 05:29:02 UTC

Severity: wishlist

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#44409: closed (Example in manual no longer works)
Date: Wed, 04 Nov 2020 03:25:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 04 Nov 2020 05:24:40 +0200
with message-id <83v9elby87.fsf <at> gnu.org>
and subject line Re: bug#44409: Example in manual no longer works
has caused the debbugs.gnu.org bug report #44409,
regarding Example in manual no longer works
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
44409: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44409
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Example in manual no longer works
Date: Tue, 03 Nov 2020 13:28:41 +0800
(info "(emacs) Grep Searching") Says

   For instance, you can chain ‘grep’ 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?


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44409-done <at> debbugs.gnu.org
Subject: Re: bug#44409: Example in manual no longer works
Date: Wed, 04 Nov 2020 05:24:40 +0200
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: bug-gnu-emacs <at> gnu.org, 44409 <at> debbugs.gnu.org
> Date: Wed, 04 Nov 2020 07:32:42 +0800
> 
> >>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> 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.


This bug report was last modified 4 years and 198 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.