From unknown Fri Aug 15 18:46:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward Resent-From: Gerard Vermeulen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2024 16:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71879@debbugs.gnu.org X-Debbugs-Original-To: Bug gnu emacs Received: via spool by submit@debbugs.gnu.org id=B.17198504361441 (code B ref -1); Mon, 01 Jul 2024 16:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2024 16:13:56 +0000 Received: from localhost ([127.0.0.1]:33689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOJfA-0000NB-Dl for submit@debbugs.gnu.org; Mon, 01 Jul 2024 12:13:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:58094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOJf7-0000N1-Td for submit@debbugs.gnu.org; Mon, 01 Jul 2024 12:13:54 -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 1sOJf4-0001SD-7z for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 12:13:50 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOJf0-0000HT-Ij for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 12:13:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EC571240101 for ; Mon, 1 Jul 2024 18:13:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719850419; bh=8HaPZIqZpsk8+Rx26DSFPnrAebKxNZ3UN0oVqojiepg=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:Message-ID:From; b=mgOvgQJNncQicZ/+N0EofVKjX2RYY7KlpZ+eBFofcB5PloXfWr5QHlHgppIY6pZN6 kGWTSxlpumqZY9i/Lh2e5ZeIaJw06DbMQfbaGhvWBG/BrscAgoQVpqgr4a+4K4mP2k a3CdRnjO/gHmbSBePTDixsRXve/42VyiWnmvw0Fn0bSQqnb/1n4D8VKU81FZ2Lk4JR z0zyggbCgP5atrxt9EZBlj3BbZa8hGCC0W2+aOcUGsMGJKAgNnG1N66jYT/MSVXugd J5KG8nVo6KlSdVT2uRDaEwOO1ZyEEVUVNYgLqkqv/FjUoCu6lN2jREoQBg4+F2z9Er 64DqTPAD/QRKg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WCWLV4Hmyz6tn4 for ; Mon, 1 Jul 2024 18:13:38 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Jul 2024 16:13:38 +0000 From: Gerard Vermeulen Message-ID: Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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.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: -2.3 (--) Hello, The last "if" clause in the NOERROR part of the re-search-forward docstring is wrong. It reads "if it is neither nil nor t, move to the limit of search and return nil." but if NOERROR equals neither nil nor t re-search-forward returns the start position of the match (when found) or nil (when no match found). See for instance: (info "(Eintr) the-the") By the way: using the-the finds a duplication "is is" in the NEWS file but I am unsure whether this merits a bug report. Regards -- Gerard From unknown Fri Aug 15 18:46:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2024 17:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerard Vermeulen Cc: 71879@debbugs.gnu.org Received: via spool by 71879-submit@debbugs.gnu.org id=B71879.171985502621722 (code B ref 71879); Mon, 01 Jul 2024 17:31:02 +0000 Received: (at 71879) by debbugs.gnu.org; 1 Jul 2024 17:30:26 +0000 Received: from localhost ([127.0.0.1]:34414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOKrB-0005eI-MJ for submit@debbugs.gnu.org; Mon, 01 Jul 2024 13:30:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOKr9-0005e1-Ad for 71879@debbugs.gnu.org; Mon, 01 Jul 2024 13:30:24 -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 1sOKr2-0001VY-LV; Mon, 01 Jul 2024 13:30:16 -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=ECDmIPJzXqW4F0Lk7Z4p85WdP0e3/O3HRasbXWPXOd4=; b=pFpKbEnK3jeW Eq4SWL8KFIrEgbEN3v6r82+cNK/L0VXITNJVbDvrWC7WO2IGSo+N7s6OnQ46tk2OvNTJn5PRaQK7/ umoC0ncH1wUyv70UVKmfiP7uhlL/8nQP1JXlmvZ/HK+Lj4QUYkinV64I8lx6Zz9F/jsmInWjcojgT oujVJhxeElBXo3nQV1gqHxh1d2BuyQbEAK85EA6Vrmp6qPPV3JX3CKCAQP6krU0/1BORnl6bz1UX4 kVq5NiDfEzqhatq4jWhC5lvwrMbNz17gBD1lXAI2ycCfJWg6jUlinRlpWC3XEaXwn/LuGjn+QCgi3 LmcpInuoXoHgADj0yJb+lQ==; Date: Mon, 01 Jul 2024 20:30:12 +0300 Message-Id: <86plrxdnq3.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Gerard Vermeulen on Mon, 01 Jul 2024 16:13:38 +0000) References: 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 (---) > Date: Mon, 01 Jul 2024 16:13:38 +0000 > From: Gerard Vermeulen > > Hello, > > The last "if" clause in the NOERROR part of the re-search-forward > docstring > is wrong. > > It reads "if it is neither nil nor t, move to the limit of search and > return nil." > > but if NOERROR equals neither nil nor t re-search-forward returns > the start position of the match (when found) or nil (when no match > found). The full text of that part is as follows: The optional third argument NOERROR indicates how errors are handled when the search fails. If it is nil or omitted, emit an error; if it is t, simply return nil and do nothing; if it is neither nil nor t, move to the limit of search and return nil. Note the first sentence of the paragraph: this entire paragraph describes how NOERROR affects the case when the search _fails_. Thus, the situation where the search succeeds is not relevant to the above part of the doc string. So I think this text is accurate and correct. > By the way: using the-the finds a duplication "is is" in the NEWS > file but I am unsure whether this merits a bug report. Fixed, thanks. From unknown Fri Aug 15 18:46:45 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward Resent-From: Gerard Vermeulen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Jul 2024 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71879 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 71879@debbugs.gnu.org Received: via spool by 71879-submit@debbugs.gnu.org id=B71879.171985610923660 (code B ref 71879); Mon, 01 Jul 2024 17:49:02 +0000 Received: (at 71879) by debbugs.gnu.org; 1 Jul 2024 17:48:29 +0000 Received: from localhost ([127.0.0.1]:34457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOL8e-00069Y-JC for submit@debbugs.gnu.org; Mon, 01 Jul 2024 13:48:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOL8c-00069H-US for 71879@debbugs.gnu.org; Mon, 01 Jul 2024 13:48:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 97C89240101 for <71879@debbugs.gnu.org>; Mon, 1 Jul 2024 19:48:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719856099; bh=WakMHAzGPAsbkGsXpp+zEgmL56kYQVGPm663It4ITas=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=i2OCwwlcaQaJxuKLX0HXiep+9FuqS1cSUNjDtJl6PwUma4Mw36wjvB81R0yS7PDtX PWXDKtMU9GaMLa5FH1a7L3YvpXIhuh1A8CezuYnTnGRi7OUqeYDTEs8yt1RJ/x9AJE 8kQE43g1hXvPBK4WP3AmhcjggK/f8ztFK6IrG2B3BQWzR38eM2M7gE52BAIi/TLaEI 6jSTqmIOkCAli7jjH60kvvwwwKSlv4NPjLmNZIzc+VfVZAFAsx9tUDSTctqJyBsZAD sOAd/K6G/0T2aUOaaQTznyQjgnL+tP9tvx0vQKt4hO2QEFjKa7by4rYtAegOVK1eqj T6btocftC/o/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WCYRk2F6wz6typ; Mon, 1 Jul 2024 19:48:18 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Jul 2024 17:48:18 +0000 From: Gerard Vermeulen In-Reply-To: <86plrxdnq3.fsf@gnu.org> References: <86plrxdnq3.fsf@gnu.org> Message-ID: <77229ea00f071fa9fb077ab6e6737368@posteo.net> 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 01.07.2024 19:30, Eli Zaretskii wrote: >> Date: Mon, 01 Jul 2024 16:13:38 +0000 >> From: Gerard Vermeulen >> >> Hello, >> >> The last "if" clause in the NOERROR part of the re-search-forward >> docstring >> is wrong. >> >> It reads "if it is neither nil nor t, move to the limit of search and >> return nil." >> >> but if NOERROR equals neither nil nor t re-search-forward returns >> the start position of the match (when found) or nil (when no match >> found). > > The full text of that part is as follows: > > The optional third argument NOERROR indicates how errors are handled > when the search fails. If it is nil or omitted, emit an error; if > it is t, simply return nil and do nothing; if it is neither nil nor > t, move to the limit of search and return nil. > > Note the first sentence of the paragraph: this entire paragraph > describes how NOERROR affects the case when the search _fails_. Thus, > the situation where the search succeeds is not relevant to the above > part of the doc string. > > So I think this text is accurate and correct. > Yes, I agree that the paragraph can be read like this. From unknown Fri Aug 15 18:46:45 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: Gerard Vermeulen Subject: bug#71879: closed (Re: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward) Message-ID: References: <86sewdk2un.fsf@gnu.org> X-Gnu-PR-Message: they-closed 71879 X-Gnu-PR-Package: emacs Reply-To: 71879@debbugs.gnu.org Date: Sat, 13 Jul 2024 10:24:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1720866242-6393-1" This is a multi-part message in MIME format... ------------=_1720866242-6393-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forw= ard 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 71879@debbugs.gnu.org. --=20 71879: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71879 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1720866242-6393-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71879-done) by debbugs.gnu.org; 13 Jul 2024 10:23:25 +0000 Received: from localhost ([127.0.0.1]:55162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSZuW-0001eK-Hq for submit@debbugs.gnu.org; Sat, 13 Jul 2024 06:23:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSZuU-0001e8-8P for 71879-done@debbugs.gnu.org; Sat, 13 Jul 2024 06:23:22 -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 1sSZuN-0007PG-Vh; Sat, 13 Jul 2024 06:23:15 -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=czKcAneZjoaXd36EWHyU/bBXOQ5Wg6tPyUHqu28EQ/g=; b=e7OoQ46cuiYj WB5zinBIa46iFNWhaxH5drr3ekET2C88URLrc89qsOrqjfqYnhaadIaZCE2DWb7hiK127g1SQBH7p VGrPnVrIOVVPwFrSbyWilhiY5Kz42v8xj8jszoQWEWMVn4FiLwJfi/wRbNvqGvMQJ+stvEe6qh5/A mAcAiyL8owcwQrlWl5p1NIBgBW+slwgL56oVoN/tREqft/MSCHgfnViHhCnToPK/Pw1GVpqV8KjZ/ j//kXElsiHu2AWyAJd/WnLPSm/MwZqE307dXpIx0ZX2UYF21D6xZpmqptgfD9mnolkUuYIj47l/lh qhSmXmoY8Y6OVFZZgODoNQ==; Date: Sat, 13 Jul 2024 13:23:12 +0300 Message-Id: <86sewdk2un.fsf@gnu.org> From: Eli Zaretskii To: Gerard Vermeulen In-Reply-To: <77229ea00f071fa9fb077ab6e6737368@posteo.net> (message from Gerard Vermeulen on Mon, 01 Jul 2024 17:48:18 +0000) Subject: Re: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward References: <86plrxdnq3.fsf@gnu.org> <77229ea00f071fa9fb077ab6e6737368@posteo.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71879-done Cc: 71879-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 (---) > Date: Mon, 01 Jul 2024 17:48:18 +0000 > From: Gerard Vermeulen > Cc: 71879@debbugs.gnu.org > > On 01.07.2024 19:30, Eli Zaretskii wrote: > > The full text of that part is as follows: > > > > The optional third argument NOERROR indicates how errors are handled > > when the search fails. If it is nil or omitted, emit an error; if > > it is t, simply return nil and do nothing; if it is neither nil nor > > t, move to the limit of search and return nil. > > > > Note the first sentence of the paragraph: this entire paragraph > > describes how NOERROR affects the case when the search _fails_. Thus, > > the situation where the search succeeds is not relevant to the above > > part of the doc string. > > > > So I think this text is accurate and correct. > > > Yes, I agree that the paragraph can be read like this. I've modified the doc string a bit to make this intent more clear, and I'm therefore closing the bug. ------------=_1720866242-6393-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Jul 2024 16:13:56 +0000 Received: from localhost ([127.0.0.1]:33689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOJfA-0000NB-Dl for submit@debbugs.gnu.org; Mon, 01 Jul 2024 12:13:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:58094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOJf7-0000N1-Td for submit@debbugs.gnu.org; Mon, 01 Jul 2024 12:13:54 -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 1sOJf4-0001SD-7z for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 12:13:50 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOJf0-0000HT-Ij for bug-gnu-emacs@gnu.org; Mon, 01 Jul 2024 12:13:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EC571240101 for ; Mon, 1 Jul 2024 18:13:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719850419; bh=8HaPZIqZpsk8+Rx26DSFPnrAebKxNZ3UN0oVqojiepg=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:Message-ID:From; b=mgOvgQJNncQicZ/+N0EofVKjX2RYY7KlpZ+eBFofcB5PloXfWr5QHlHgppIY6pZN6 kGWTSxlpumqZY9i/Lh2e5ZeIaJw06DbMQfbaGhvWBG/BrscAgoQVpqgr4a+4K4mP2k a3CdRnjO/gHmbSBePTDixsRXve/42VyiWnmvw0Fn0bSQqnb/1n4D8VKU81FZ2Lk4JR z0zyggbCgP5atrxt9EZBlj3BbZa8hGCC0W2+aOcUGsMGJKAgNnG1N66jYT/MSVXugd J5KG8nVo6KlSdVT2uRDaEwOO1ZyEEVUVNYgLqkqv/FjUoCu6lN2jREoQBg4+F2z9Er 64DqTPAD/QRKg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WCWLV4Hmyz6tn4 for ; Mon, 1 Jul 2024 18:13:38 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 01 Jul 2024 16:13:38 +0000 From: Gerard Vermeulen To: Bug gnu emacs Subject: 30.0.60; Docstring error in NOERROR argument part of re-search-forward Message-ID: Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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.3 (-) 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.3 (--) Hello, The last "if" clause in the NOERROR part of the re-search-forward docstring is wrong. It reads "if it is neither nil nor t, move to the limit of search and return nil." but if NOERROR equals neither nil nor t re-search-forward returns the start position of the match (when found) or nil (when no match found). See for instance: (info "(Eintr) the-the") By the way: using the-the finds a duplication "is is" in the NEWS file but I am unsure whether this merits a bug report. Regards -- Gerard ------------=_1720866242-6393-1--