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#72554: 31.0.50; misleading release information for 'always' Date: Sat, 10 Aug 2024 14:42:04 +0300 Message-ID: <86frrck3jn.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72554@debbugs.gnu.org To: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 10 13:42:53 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 1sckUm-0003CG-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Aug 2024 13:42:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sckUV-00042y-Bf; Sat, 10 Aug 2024 07:42:35 -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 1sckUT-00042R-0Q for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 07:42:33 -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 1sckUS-0006vd-Ng for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 07:42:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=XIf6vCHcJLDBErqw4RhOebml7G3/ghWa/U6bqis7K3o=; b=rFS3MsHZHFiJhMrsEVDMl2myP/H1Z+yrQcamTiS6UOV9GAq1dmXWeuxEhm//9MdEeU3Q8m4NbU/oIyhy0rKnX/zZ0Yj4iseT6L7r1m/nmC/zCQ1EdOZ9YGklxaEkbXMfO347FZUj7Ik5BVIGgq6ppDiq/b27khuT/XUk9vLqhqVWUNMj03NOVBiD2OuovkQnwvsngdYsrnXXF94vLqVUfTMd0CHbj7KayPdm5IyGYaiKfVxNR++stCVARK0G5HKphxSyPgUxRPxDUsz5ycfbc7vWVDrXcdYLWoJjCy1wzX3OzZcku1fdwKRHUM6FfqoCqqfZNe0KBvKPmU0PPF+pXQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sckUv-0003Rr-Om for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 07:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Aug 2024 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72554 X-GNU-PR-Package: emacs Original-Received: via spool by 72554-submit@debbugs.gnu.org id=B72554.172329016613228 (code B ref 72554); Sat, 10 Aug 2024 11:43:01 +0000 Original-Received: (at 72554) by debbugs.gnu.org; 10 Aug 2024 11:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:39130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sckUf-0003RF-Th for submit@debbugs.gnu.org; Sat, 10 Aug 2024 07:42:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sckUb-0003Qy-T7 for 72554@debbugs.gnu.org; Sat, 10 Aug 2024 07:42:44 -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 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==; In-Reply-To: (message from Ulrich Mueller on Sat, 10 Aug 2024 13:16:35 +0200) 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:289995 Archived-At: > From: Ulrich Mueller > 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.