help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Impossible to customize world clock


From: Eli Zaretskii
Subject: Re: Impossible to customize world clock
Date: Tue, 09 Apr 2024 18:28:14 +0300

> Date: Tue, 09 Apr 2024 11:12:42 -0400
> From:  Stefan Monnier via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org>
> 
> >> Hmm... it's too bad that in order to automatically make it work on both
> >> MS-Windows and other systems (by automatically choosing which var to
> >> use) we end up silently ignoring the user's config when the user isn't
> >> aware of this mechanism.
> >> 
> >> Maybe we should have chosen for `world-clock-list` a format like
> >> 
> >>     ("London" "Europe/London" "GMT0BST")
> >
> > I'm not sure it will work reliably, since the MS-Windows runtime
> > supports a very small number of zones via those legacy specifiers,
> > nowhere near the number of zones you will see in the zoneinfo
> > directory of a typical Posix host.
> 
> Oh, it wouldn't make any difference to what is supported and what is
> not: on MS-Windows we'd use the 3rd element of the lists, and on other
> systems we'd use the 2nd element of the list.  The purpose would be only
> to have a single variable, so the users are less likely to update one
> without knowing it's not the one they're using.

Then maybe I'm missing something because I don't understand how would
that help the OP.  He said:

> I add a new one (Europe/Berlin):
> 
>   '(zoneinfo-style-world-list
>     '(("America/Los_Angeles" "Seattle")
>       ("America/New_York" "New York")
>       ("Europe/London" "London")
>       ("Europe/Paris" "Paris")
>       ("Asia/Calcutta" "Bangalore")
>       ("Asia/Tokyo" "Tokyo")
>       ("Europe/Berlin" "Germany"))))

How would your suggestion help him to "add Europe/Berlin"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]