GNU bug report logs - #13824
24.3.50; :package-version not taking priority over :version

Previous Next

Package: emacs;

Reported by: Bastien Guerry <bzg <at> altern.org>

Date: Tue, 26 Feb 2013 21:31:02 UTC

Severity: minor

Tags: confirmed

Found in versions 26.2, 24.3.50

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Bastien Guerry <bzg <at> altern.org>
Cc: 13824 <at> debbugs.gnu.org
Subject: bug#13824: 24.3.50; :package-version not taking priority over :version
Date: Thu, 8 Aug 2019 05:59:21 +0200
Bastien Guerry <bzg <at> altern.org> writes:

> The docstring of `defcustom' says:
>
> :package-version
>         VALUE should be a list with the form (PACKAGE . VERSION)
>         specifying that the variable was first introduced, or its
>         default value was changed, in PACKAGE version VERSION.  This
>         keyword takes priority over :version.
>         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> but `describe-variable-custom-version-info' gives priority to :version
> over :package-version.  Which one is correct here?

This is still an issue on current master (and 26.2).

I reproduced this using:

    (progn
      (defcustom foobar nil
        "foo"
        :version "27.1"
        :package-version '(foo . "1"))
      (describe-variable-custom-version-info 'foobar))

Which results in:

    "This variable was introduced, or its default value was changed, in
    version 27.1 of Emacs.
    "

But C-h f defcustom says:

    :package-version
            VALUE should be a list with the form (PACKAGE . VERSION)
            specifying that the variable was first introduced, or its
            default value was changed, in PACKAGE version VERSION.  This
            keyword takes priority over :version.

Thanks,
Stefan Kangas




This bug report was last modified 5 years and 307 days ago.

Previous Next


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