Subject: Re: bug#49680: Errors in Texinfo documentation

From: Assaf Gordon <[email-masked]>
Date: Wed, 4 Aug 2021 15:07:28 -0600

On 2021-07-21 3:50 a.m., Renaud Pacalet wrote:
> The texinfo sed 4.8 documentation contains the following errors, I think.
[...]
> 1. This example is not about search for consecutive words, it is about 
> line length adjustment.
> 
> 2. On the last line of this excerpt it should be "# Append a 
> newline...", not "# Appead a newline...".

Thanks for the report.

I plan to push the attached fix in your name soon.

regards,
  - assaf
>From 268c0083de633cda8fa46a2094e257b75a4d28ca Mon Sep 17 00:00:00 2001
From: Renaud Pacalet <[email-masked]>
Date: Wed, 4 Aug 2021 15:02:56 -0600
Subject: [PATCH] doc: fix wording in 'line length adj.' example

Reported in https://bugs.gnu.org/49680 .

* doc/sed.texi: Fix wording, typo.
---
 doc/sed.texi | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/doc/sed.texi b/doc/sed.texi
index e9873fb..16d0a9c 100644
--- a/doc/sed.texi
+++ b/doc/sed.texi
@@ -4718,9 +4718,8 @@ See the GNU @command{coreutils} manual for an alternative solution using
 @node Line length adjustment
 @section Line length adjustment
 
-This section uses @code{N} and @code{D} commands to search for
-consecutive words spanning multiple lines, and the @code{b} command for
-branching.
+This section uses @code{N} and @code{P} commands to read and write
+lines, and the @code{b} command for branching.
 @xref{Multiline techniques} and @ref{Branching and flow control}.
 
 This (somewhat contrived) example deal with formatting and wrapping
@@ -4749,7 +4748,7 @@ $ cat wrap40.sed
 # outer loop
 :x
 
-# Appead a newline followed by the next input line to the pattern buffer
+# Append a newline followed by the next input line to the pattern buffer
 N
 
 # Remove all newlines from the pattern buffer
-- 
2.20.1