GNU bug report logs - #72554
31.0.50; misleading release information for 'always'

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Sat, 10 Aug 2024 11:18:02 UTC

Severity: normal

Found in version 31.0.50

To reply to this bug, email your comments to 72554 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72554; Package emacs. (Sat, 10 Aug 2024 11:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Mueller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 10 Aug 2024 11:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Mueller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; misleading release information for 'always'
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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72554; Package emacs. (Sat, 10 Aug 2024 11:43:01 GMT) Full text and rfc822 format available.

Message #8 received at 72554 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Mueller <ulm <at> gentoo.org>
Cc: 72554 <at> debbugs.gnu.org
Subject: Re: bug#72554: 31.0.50; misleading release information for 'always'
Date: Sat, 10 Aug 2024 14:42:04 +0300
> From: Ulrich Mueller <ulm <at> gentoo.org>
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72554; Package emacs. (Sat, 10 Aug 2024 12:09:01 GMT) Full text and rfc822 format available.

Message #11 received at 72554 <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Mueller <ulm <at> gentoo.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72554 <at> debbugs.gnu.org
Subject: Re: bug#72554: 31.0.50; misleading release information for 'always'
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72554; Package emacs. (Sat, 10 Aug 2024 12:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 72554 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Mueller <ulm <at> gentoo.org>
Cc: 72554 <at> debbugs.gnu.org
Subject: Re: bug#72554: 31.0.50; misleading release information for 'always'
Date: Sat, 10 Aug 2024 15:47:55 +0300
> From: Ulrich Mueller <ulm <at> gentoo.org>
> 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.




This bug report was last modified 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.