From unknown Tue Jun 17 22:09:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49680: Errors in Texinfo documentation Resent-From: Renaud Pacalet Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Wed, 21 Jul 2021 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49680 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 49680@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162687696612418 (code B ref -1); Wed, 21 Jul 2021 14:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jul 2021 14:16:06 +0000 Received: from localhost ([127.0.0.1]:38177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6D10-0003A1-DN for submit@debbugs.gnu.org; Wed, 21 Jul 2021 10:16:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:35686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m68sA-0000Vp-2D for submit@debbugs.gnu.org; Wed, 21 Jul 2021 05:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m68s9-0008G7-IZ for bug-sed@gnu.org; Wed, 21 Jul 2021 05:50:37 -0400 Received: from zproxy110.enst.fr ([137.194.2.192]:48934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m68s7-00008G-7T for bug-sed@gnu.org; Wed, 21 Jul 2021 05:50:37 -0400 Received: from localhost (localhost [IPv6:::1]) by zproxy110.enst.fr (Postfix) with ESMTP id E627C81977 for ; Wed, 21 Jul 2021 11:50:27 +0200 (CEST) Received: from zproxy110.enst.fr ([IPv6:::1]) by localhost (zproxy110.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id lZO0eCp0aoZt for ; Wed, 21 Jul 2021 11:50:27 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by zproxy110.enst.fr (Postfix) with ESMTP id 99DA081A60 for ; Wed, 21 Jul 2021 11:50:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy110.enst.fr 99DA081A60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telecom-paris.fr; s=A35C7578-1106-11E5-A17F-C303FDDA8F2E; t=1626861027; bh=7fqD25GaMOmc7Lynk5aW1jUSK37mG6CcyH1XLLzQHwY=; h=To:From:Message-ID:Date:MIME-Version; b=ewXgHE3qw5/+YHRrRaX9RoqnKwU/u801x6x6iK19VPUr5j9ANnlT1qWT2Ruxy3Uyw FIkfdesNn0xOoSUGQG0xXY/tO8xvjmSbhmlZHplia+D0ovtnlpTI56Jpj2qSUrZNdO KnilMHDz/M2cxGmKrrOQhvVdj5jT5RKT4KVWO+4o= X-Virus-Scanned: amavisd-new at zproxy110.enst.fr Received: from zproxy110.enst.fr ([IPv6:::1]) by localhost (zproxy110.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id rMtPBWEXEcfB for ; Wed, 21 Jul 2021 11:50:27 +0200 (CEST) Received: from [IPv6:2a01:e0a:5e1:e5b0::b2a4:200f] (unknown [IPv6:2a01:e0a:5e1:e5b0::b2a4:200f]) by zproxy110.enst.fr (Postfix) with ESMTPSA id 75E5D81977 for ; Wed, 21 Jul 2021 11:50:27 +0200 (CEST) From: Renaud Pacalet Message-ID: Date: Wed, 21 Jul 2021 11:50:27 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=137.194.2.192; envelope-from=renaud.pacalet@telecom-paris.fr; helo=zproxy110.enst.fr X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Mailman-Approved-At: Wed, 21 Jul 2021 10:16:02 -0400 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.7 (--) Hi, The texinfo sed 4.8 documentation contains the following errors, I think. $ sed --version sed (GNU sed) 4.8 ---------------- Next: tac, Prev: Text search across multiple lines, Up: Examples 7.8 Line length adjustment =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D This section uses 'N' and 'D' commands to search for consecutive words spanning multiple lines, and the 'b' command for branching. *Note Multiline techniques:: and *note Branching and flow control::. This (somewhat contrived) example deal with formatting and wrapping lines of text of the following input file: $ cat two-cities-mix.txt It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, The following sed program wraps lines at 40 characters: $ cat wrap40.sed # outer loop :x # Appead a newline followed by the next input line to the pattern=20 buffer ---------------- 1. This example is not about search for consecutive words, it is about=20 line length adjustment. 2. On the last line of this excerpt it should be "# Append a=20 newline...", not "# Appead a newline...". Thanks, --=20 Renaud Pacalet T=C3=A9l=C3=A9com Paris Campus SophiaTech 450 Route des Chappes, CS 50193 06904 Biot Sophia Antipolis cedex, FRANCE Tel : +33 (0) 4 9300 8402 Web : http://www.telecom-paris.fr/ From unknown Tue Jun 17 22:09:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49680: Errors in Texinfo documentation Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Wed, 04 Aug 2021 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49680 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Renaud Pacalet , 49680@debbugs.gnu.org Received: via spool by 49680-submit@debbugs.gnu.org id=B49680.16281112598270 (code B ref 49680); Wed, 04 Aug 2021 21:08:01 +0000 Received: (at 49680) by debbugs.gnu.org; 4 Aug 2021 21:07:39 +0000 Received: from localhost ([127.0.0.1]:45281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBO71-00029K-BY for submit@debbugs.gnu.org; Wed, 04 Aug 2021 17:07:39 -0400 Received: from mail-pj1-f49.google.com ([209.85.216.49]:35689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBO6z-000297-Cu for 49680@debbugs.gnu.org; Wed, 04 Aug 2021 17:07:38 -0400 Received: by mail-pj1-f49.google.com with SMTP id s22-20020a17090a1c16b0290177caeba067so10759610pjs.0 for <49680@debbugs.gnu.org>; Wed, 04 Aug 2021 14:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=vxfcIJILyM0nrCv5I558aIauprp6aAXHpwpuwEM7vXw=; b=cWUec904sZatp2+7osj/Vchvbl3oR1ExgfypS0oS5/uasm4cEIZb29kZ5wCNagL+M3 anTf5Z8LnPA4nq37LYb7cIVlab+F6cafv2wOc/MRjjprqgbW5kCCQ6FlWbAddlvsb/wB En5HlQev/WLqoAMxP7y+tJVRjpliII/6Y+qH1Gs5J1k+kqoAvB4jQxOW6O6vxRsLF7gu SkQPgjhXsUO+1x/rBZUTCeDU+MKIKqIVv8GzcZzRCSqACxq+ArFajKCQxo0X4QjRRSYx A6sVdQJn45fKO84hnJyig9eKOI8OgsSse2uJp8AfAzS8W0XiA5N5/N/AelE1pgBPoGTk w3IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=vxfcIJILyM0nrCv5I558aIauprp6aAXHpwpuwEM7vXw=; b=b8XxKOS4tyBDPtpH3If4LvrP3xky9kTCXC97X1FmslmCI6MWvySWGGiD21y7wOHVXR WJ1ERBYqLf4DsbBdGDGKinSoAA2+tGazlOFGzEDVtiFEUIa5lcoZ13JsIpnPFB1ZalVY mgiPihlUKlcgB9DZQnyHK3kK+TvKYaCa6ZECvQegnEzKOiStu3NSCSNm9RTzWMCxiMlr 6c8XDLnXg42dnwSRP8yVaN4vwubpKBxR3rp1ALaqQ9vvcUgCYxhD9Dh33KYt9oE+Wzct iVdhfEP4Dk+1PRe9BZ5/LaO1q00RqD3wDEgQLdUtj6fzQeQh1MPpzP0hAmSivUB/GN7o YDUg== X-Gm-Message-State: AOAM530GyOf+iopxXiunXG0CZLo1sB0rQvHZ2GGYWRMRWSE8LH5yWYZ0 OLYZx4zLfmVKkF4+TS8DKopYpIX35oQ= X-Google-Smtp-Source: ABdhPJy9YkRdwhMBpfUxGP/5nMitEG2WL2Ri0s+EAu/1tGANc6nSFUDdbMgMXElLZObJmPCy+LjHnA== X-Received: by 2002:a17:902:da8a:b029:12c:4261:a2d6 with SMTP id j10-20020a170902da8ab029012c4261a2d6mr966660plx.50.1628111251224; Wed, 04 Aug 2021 14:07:31 -0700 (PDT) Received: from tomato.moose.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id i18sm4910932pgb.83.2021.08.04.14.07.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Aug 2021 14:07:30 -0700 (PDT) References: From: Assaf Gordon Message-ID: <0285accd-e99a-e0e8-4b21-f315273b6a06@gmail.com> Date: Wed, 4 Aug 2021 15:07:28 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------FB544DE86CD35C08A3180C3E" Content-Language: en-US X-Spam-Score: -0.1 (/) 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.1 (-) This is a multi-part message in MIME format. --------------FB544DE86CD35C08A3180C3E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------FB544DE86CD35C08A3180C3E Content-Type: text/x-patch; charset=UTF-8; name="0001-doc-fix-wording-in-line-length-adj.-example.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-doc-fix-wording-in-line-length-adj.-example.patch" >From 268c0083de633cda8fa46a2094e257b75a4d28ca Mon Sep 17 00:00:00 2001 From: Renaud Pacalet 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 --------------FB544DE86CD35C08A3180C3E-- From unknown Tue Jun 17 22:09:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49680: Errors in Texinfo documentation Resent-From: Jim Meyering Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Wed, 04 Aug 2021 21:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49680 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Assaf Gordon Cc: Renaud Pacalet , 49680@debbugs.gnu.org Received: via spool by 49680-submit@debbugs.gnu.org id=B49680.16281120689549 (code B ref 49680); Wed, 04 Aug 2021 21:22:01 +0000 Received: (at 49680) by debbugs.gnu.org; 4 Aug 2021 21:21:08 +0000 Received: from localhost ([127.0.0.1]:45296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBOK4-0002Tx-8Z for submit@debbugs.gnu.org; Wed, 04 Aug 2021 17:21:08 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:41711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBOK1-0002Sh-QX for 49680@debbugs.gnu.org; Wed, 04 Aug 2021 17:21:06 -0400 Received: by mail-wm1-f42.google.com with SMTP id m28-20020a05600c3b1cb02902b5a8c22575so2051958wms.0 for <49680@debbugs.gnu.org>; Wed, 04 Aug 2021 14:21:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0wk3jEyZBJcl+8ZKc0sOljThWjwVV8TIc5+YaKsjAsI=; b=ZIh13er7KffA00TbMvuqLHxBzgSx9U36vpGU7oLXzMF+Wr0wpRIYx7RexMkmFoVGuM 7+hFImaTmVvpxvZ8+8ogW+9eieBnIoghEnII1cwUHEiDIQGbxRGXiGv1vEBbj7tDzA+S Rhn7cgw0MexPi55b9raPWj1OMvVUMwwB3TK6ED8R58C3J6g+D5+3F+Th/VlA8xQ5IDu7 ug6if+hTw5grKc8u+vEpKGXJdpCOulEL+NIYrTWqXDqEy8D5zIIlGCFvC1GrBT8+uvkZ ggOfG/1Lrwuzx0Jn2uX3qei3qTZZm6Vmz5B4qt9x0k2aMo2dYtPfQgHEGZZ1UmwYNEj2 vgQw== X-Gm-Message-State: AOAM532+wyKBCTk7cu5ZmXOsHsYgfc4WfTs7RbMds8X7UKnnTgEd7GUh nDyYTv/ooV7kZSIzWekI+Z7d3i0oIll1QqaxCHs= X-Google-Smtp-Source: ABdhPJze1KTBfVRZUlQ5QR1mfC1PMkwfYNCyxlrIfC9pA9Ws2n13LmMQFyXa4V5EItkyKhy8xmA/RobFQ2ARu27M+yE= X-Received: by 2002:a7b:cbcc:: with SMTP id n12mr1389137wmi.149.1628112059824; Wed, 04 Aug 2021 14:20:59 -0700 (PDT) MIME-Version: 1.0 References: <0285accd-e99a-e0e8-4b21-f315273b6a06@gmail.com> In-Reply-To: <0285accd-e99a-e0e8-4b21-f315273b6a06@gmail.com> From: Jim Meyering Date: Wed, 4 Aug 2021 14:20:47 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) 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.5 (/) On Wed, Aug 4, 2021 at 2:09 PM Assaf Gordon wrote: > > 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. Thank you both. That patch looks fine.