[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be
From: |
Paul Eggert |
Subject: |
bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be -1 (guess) |
Date: |
Mon, 13 Jun 2022 14:30:40 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 5/31/22 05:25, Maxim Nikulin wrote:
I have never used `cl-defstruct' before (and frankly speaking I am
rather confused that the `decoded-time' struct and its constructor
`make-decoded-time' are defined in different files and even directories
are not the same), so my question may be naïve. Why did not you just add
this new sentence to the :documentation property of the DST slot a bit
above?
I am not sure I understand the question. The slot itself has a specified
value (t, nil, or -1) whereas the decoded-time-dst function returns an
unspecified value when there is no slot.
By the way, after updating of `make-decoded-time', default value for DST
should be updated in `cl-defstruct' as well, otherwise
(describe-symbol 'decoded-time)
reports that the default is nil.
It may be reasonable to cross-link `decoded-time' and
`make-decoded-time' in docstrings.
Thanks for the suggestions; I installed the attached.
0001-Default-decoded-time-dst-slot-to-1.patch
Description: Text Data
- bug#55635: `make-decoded-time' incorrectly sets DST to nil, it should be -1 (guess),
Paul Eggert <=