From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71879: 30.0.60; Docstring error in NOERROR argument part of re-search-forward Date: Sat, 13 Jul 2024 13:23:12 +0300 Message-ID: <86sewdk2un.fsf@gnu.org> References: <86plrxdnq3.fsf@gnu.org> <77229ea00f071fa9fb077ab6e6737368@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37588"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71879-done@debbugs.gnu.org To: Gerard Vermeulen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 13 12:24:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sSZvR-0009X2-AS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jul 2024 12:24:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSZv8-0004gD-Ke; Sat, 13 Jul 2024 06:24:02 -0400 Original-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 1sSZv7-0004fv-Na for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2024 06:24:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSZv7-0008Mn-Ew for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2024 06:24:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSZv8-0001fE-5n for bug-gnu-emacs@gnu.org; Sat, 13 Jul 2024 06:24:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2024 10:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71879 X-GNU-PR-Package: emacs Mail-Followup-To: 71879@debbugs.gnu.org, eliz@gnu.org, gerard.vermeulen@posteo.net Original-Received: via spool by 71879-done@debbugs.gnu.org id=D71879.17208662056349 (code D ref 71879); Sat, 13 Jul 2024 10:24:01 +0000 Original-Received: (at 71879-done) by debbugs.gnu.org; 13 Jul 2024 10:23:25 +0000 Original-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 Original-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 Original-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==; In-Reply-To: <77229ea00f071fa9fb077ab6e6737368@posteo.net> (message from Gerard Vermeulen on Mon, 01 Jul 2024 17:48:18 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288802 Archived-At: > 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.