X-Loop: help-debbugs@HIDDEN Subject: bug#72554: 31.0.50; misleading release information for 'always' Resent-From: Ulrich Mueller <ulm@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 10 Aug 2024 11:18:02 +0000 Resent-Message-ID: <handler.72554.B.172328864610805 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 72554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 72554 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.172328864610805 (code B ref -1); Sat, 10 Aug 2024 11:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2024 11:17:26 +0000 Received: from localhost ([127.0.0.1]:39123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sck6A-0002oD-Fe for submit <at> debbugs.gnu.org; Sat, 10 Aug 2024 07:17:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:41722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1sck67-0002o3-9r for submit <at> debbugs.gnu.org; Sat, 10 Aug 2024 07:17:24 -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 <ulm@HIDDEN>) id 1sck5d-0000df-Rk for bug-gnu-emacs@HIDDEN; Sat, 10 Aug 2024 07:16:53 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <ulm@HIDDEN>) id 1sck5b-0003Ry-3G for bug-gnu-emacs@HIDDEN; Sat, 10 Aug 2024 07:16:52 -0400 From: Ulrich Mueller <ulm@HIDDEN> Date: Sat, 10 Aug 2024 13:16:35 +0200 Message-ID: <u1q2waar0@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@HIDDEN; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) "C-h f always RET" says: always is a byte-compiled Lisp function in =E2=80=98subr.el=E2=80=99. [...] Probably introduced at or before Emacs version 25.1. This function does not change global state, including the match data. However, 'always' only appeared in Emacs 28, so that information is misleading when trying to write backwards compatible code. (It's less of a problem when the version that is shown is greater than the actual first release, which I think happens more often.) Not sure how to fix this. Maybe exclude common English words (which are likely to appear in NEWS* without being the name of a function) from scanning in help-fns.el?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Ulrich Mueller <ulm@HIDDEN> Subject: bug#72554: Acknowledgement (31.0.50; misleading release information for 'always') Message-ID: <handler.72554.B.172328864610805.ack <at> debbugs.gnu.org> References: <u1q2waar0@HIDDEN> X-Gnu-PR-Message: ack 72554 X-Gnu-PR-Package: emacs Reply-To: 72554 <at> debbugs.gnu.org Date: Sat, 10 Aug 2024 11:18:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 72554 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 72554: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72554 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#72554: 31.0.50; misleading release information for 'always' Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 10 Aug 2024 11:43:01 +0000 Resent-Message-ID: <handler.72554.B72554.172329016613228 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 72554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ulrich Mueller <ulm@HIDDEN> Cc: 72554 <at> debbugs.gnu.org Received: via spool by 72554-submit <at> debbugs.gnu.org id=B72554.172329016613228 (code B ref 72554); Sat, 10 Aug 2024 11:43:01 +0000 Received: (at 72554) by debbugs.gnu.org; 10 Aug 2024 11:42:46 +0000 Received: from localhost ([127.0.0.1]:39130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sckUf-0003RF-Th for submit <at> debbugs.gnu.org; Sat, 10 Aug 2024 07:42:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sckUb-0003Qy-T7 for 72554 <at> debbugs.gnu.org; Sat, 10 Aug 2024 07:42:44 -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 <eliz@HIDDEN>) id 1sckU2-0006t8-K3; Sat, 10 Aug 2024 07:42:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=XIf6vCHcJLDBErqw4RhOebml7G3/ghWa/U6bqis7K3o=; b=iENPJdsMxeoZ8c/PgF7+ nR1oMhMei0q7kmT6Fi28ORVcUIxwGtWbT9MCusgnh3TfCSCL0DWWBij2X0W+Fh2Vdpkpg4izvukgb e2QQKCv2svEw/PnJsXC8FHQBc8SJ/3gfHRI0kbWfLfCHxRtDkGWo5sLwznb4wKiYl/365fApK+2Nr AJ163z7IoCNdJyzYuj0VbrszGrBREw8SAL5qjlwOukjwdsyutO2lrihDSJ+nOYcIepYlbZgJBLSGx cu7PYJ+R0c/xGr9f/YBEFyaVJ3Wy4QYwR/BKRQXkR6jpfgfgeDU1VtftiHXSrvVJ/JCWuqoGWsxsL BJpJifVYi1uY9A==; Date: Sat, 10 Aug 2024 14:42:04 +0300 Message-Id: <86frrck3jn.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <u1q2waar0@HIDDEN> (message from Ulrich Mueller on Sat, 10 Aug 2024 13:16:35 +0200) References: <u1q2waar0@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Ulrich Mueller <ulm@HIDDEN> > Date: Sat, 10 Aug 2024 13:16:35 +0200 > > "C-h f always RET" says: > > always is a byte-compiled Lisp function in ‘subr.el’. > [...] > > Probably introduced at or before Emacs version 25.1. > This function does not change global state, including the match data. > > However, 'always' only appeared in Emacs 28, so that information is > misleading when trying to write backwards compatible code. > > (It's less of a problem when the version that is shown is greater than > the actual first release, which I think happens more often.) > > Not sure how to fix this. Maybe exclude common English words (which > are likely to appear in NEWS* without being the name of a function) > from scanning in help-fns.el? help-fns--first-release-regexp is supposed to find only quoted names, so the problem is not with common words. I think it finds this in NEWS.25: *** New value 'always' for 'sh-indent-after-continuation'. ^^^^^^^^ So maybe we should reject matches that immediately follow "value" or "values". That won't reject all false positives, but it should be an improvement, I think.
X-Loop: help-debbugs@HIDDEN Subject: bug#72554: 31.0.50; misleading release information for 'always' Resent-From: Ulrich Mueller <ulm@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 10 Aug 2024 12:09:01 +0000 Resent-Message-ID: <handler.72554.B72554.172329168315741 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 72554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 72554 <at> debbugs.gnu.org Received: via spool by 72554-submit <at> debbugs.gnu.org id=B72554.172329168315741 (code B ref 72554); Sat, 10 Aug 2024 12:09:01 +0000 Received: (at 72554) by debbugs.gnu.org; 10 Aug 2024 12:08:03 +0000 Received: from localhost ([127.0.0.1]:39148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sckt9-00045o-8H for submit <at> debbugs.gnu.org; Sat, 10 Aug 2024 08:08:03 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:37076 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1sckt6-00045G-Su for 72554 <at> debbugs.gnu.org; Sat, 10 Aug 2024 08:08:01 -0400 From: Ulrich Mueller <ulm@HIDDEN> In-Reply-To: <86frrck3jn.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 10 Aug 2024 14:42:04 +0300") References: <u1q2waar0@HIDDEN> <86frrck3jn.fsf@HIDDEN> Date: Sat, 10 Aug 2024 14:07:20 +0200 Message-ID: <uwmko8ttz@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >>>>> On Sat, 10 Aug 2024, Eli Zaretskii wrote: > help-fns--first-release-regexp is supposed to find only quoted names, > so the problem is not with common words. I think it finds this in > NEWS.25: > *** New value 'always' for 'sh-indent-after-continuation'. > ^^^^^^^^ NEWS.26, too (twice): ** Option 'buffer-offer-save' can be set to new value, 'always'. ^^^^^^^^ When set to 'always', the command 'save-some-buffers' will always ^^^^^^^^ offer this buffer for saving. > So maybe we should reject matches that immediately follow "value" or > "values". That won't reject all false positives, but it should be an > improvement, I think.
X-Loop: help-debbugs@HIDDEN Subject: bug#72554: 31.0.50; misleading release information for 'always' Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 10 Aug 2024 12:52:02 +0000 Resent-Message-ID: <handler.72554.B72554.172329426320469 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 72554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ulrich Mueller <ulm@HIDDEN> Cc: 72554 <at> debbugs.gnu.org Received: via spool by 72554-submit <at> debbugs.gnu.org id=B72554.172329426320469 (code B ref 72554); Sat, 10 Aug 2024 12:52:02 +0000 Received: (at 72554) by debbugs.gnu.org; 10 Aug 2024 12:51:03 +0000 Received: from localhost ([127.0.0.1]:39189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sclYk-0005K4-Uo for submit <at> debbugs.gnu.org; Sat, 10 Aug 2024 08:51:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sclYj-0005JZ-A8 for 72554 <at> debbugs.gnu.org; Sat, 10 Aug 2024 08:51:01 -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 <eliz@HIDDEN>) id 1sclVo-0007xp-J0; Sat, 10 Aug 2024 08:48: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=7i3ZxCZl0ucvYig26aMG6kfI5ezaGlrwS3Tc0Yii1bI=; b=It6+dxjAIaOT i5WoJFLGfbmcnTcFk0F9aEcKLLZ2bQhd1J7sATN0+dgh9nooVNIxUplY+ncITFBrhJHZaQg1gYlSw yIY27TmakV7dh0g3nAScVl/UHVK1qkWO70F0C3R8ruaCCANvhe19FMBgF62gDZGOI/6A9VXmR6gd2 cc5TrBQPgNa7dGKlM3taGVYZRUY5+YI5SPMr4g39bAfqZsZ21/wdpPg1rcy7I+35tT/6sQvPnoiQn XF/O02+DRM00WrR/wi1RYlZi5VIVhgqyOTI2zXfSHx76d7cWHNSMSXj257T27SjcoST5g07FuuODT 5K4zEPMOsn2Fj6k4GUkfDQ==; Date: Sat, 10 Aug 2024 15:47:55 +0300 Message-Id: <86ed6wk0hw.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <uwmko8ttz@HIDDEN> (message from Ulrich Mueller on Sat, 10 Aug 2024 14:07:20 +0200) References: <u1q2waar0@HIDDEN> <86frrck3jn.fsf@HIDDEN> <uwmko8ttz@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Ulrich Mueller <ulm@HIDDEN> > Cc: 72554 <at> debbugs.gnu.org > Date: Sat, 10 Aug 2024 14:07:20 +0200 > > >>>>> On Sat, 10 Aug 2024, Eli Zaretskii wrote: > > > help-fns--first-release-regexp is supposed to find only quoted names, > > so the problem is not with common words. I think it finds this in > > NEWS.25: > > > *** New value 'always' for 'sh-indent-after-continuation'. > > ^^^^^^^^ > > NEWS.26, too (twice): > > ** Option 'buffer-offer-save' can be set to new value, 'always'. > ^^^^^^^^ > When set to 'always', the command 'save-some-buffers' will always > ^^^^^^^^ > offer this buffer for saving. > > > So maybe we should reject matches that immediately follow "value" or > > "values". That won't reject all false positives, but it should be an > > improvement, I think. So we have more prefixes to filter out: "set to" as well. And some punctuation between "value" and a quoted symbol should be ignored.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.