mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Rename recent calendar user option
* lisp/calendar/calendar.el (calendar-time-zone-style): Rename from calendar-use-numeric-time-zones. * lisp/calendar/cal-dst.el (calendar-standard-time-zone-name) (calendar-daylight-time-zone-name): * lisp/calendar/solar.el (sunrise-sunset, solar-equinoxes-solstices): Use new variable name. * doc/emacs/calendar.texi (Sunrise/Sunset): Update. ; * etc/NEWS: Update.
This commit is contained in:
parent
d089c4fbfc
commit
dca8b4ac58
5 changed files with 18 additions and 16 deletions
|
|
@ -350,7 +350,7 @@ If the locale never uses daylight saving time, set this to 0."
|
|||
:group 'calendar-dst)
|
||||
|
||||
(defcustom calendar-standard-time-zone-name
|
||||
(if calendar-use-numeric-time-zones
|
||||
(if (eq calendar-time-zone-style 'numeric)
|
||||
(if calendar-current-time-zone-cache
|
||||
(format-time-string
|
||||
"%z" 0 (* 60 (car calendar-current-time-zone-cache)))
|
||||
|
|
@ -360,10 +360,11 @@ If the locale never uses daylight saving time, set this to 0."
|
|||
For example, \"EST\" in New York City, \"PST\" for Los Angeles."
|
||||
:type 'string
|
||||
:version "28.1"
|
||||
:set-after '(calendar-time-zone-style)
|
||||
:group 'calendar-dst)
|
||||
|
||||
(defcustom calendar-daylight-time-zone-name
|
||||
(if calendar-use-numeric-time-zones
|
||||
(if (eq calendar-time-zone-style 'numeric)
|
||||
(if calendar-current-time-zone-cache
|
||||
(format-time-string
|
||||
"%z" 0 (* 60 (cadr calendar-current-time-zone-cache)))
|
||||
|
|
@ -373,6 +374,7 @@ For example, \"EST\" in New York City, \"PST\" for Los Angeles."
|
|||
For example, \"EDT\" in New York City, \"PDT\" for Los Angeles."
|
||||
:type 'string
|
||||
:version "28.1"
|
||||
:set-after '(calendar-time-zone-style)
|
||||
:group 'calendar-dst)
|
||||
|
||||
(defcustom calendar-daylight-savings-starts-time
|
||||
|
|
|
|||
|
|
@ -1061,10 +1061,12 @@ calendar."
|
|||
:type 'boolean
|
||||
:group 'holidays)
|
||||
|
||||
(defcustom calendar-use-numeric-time-zones nil
|
||||
"If nil, use symbolic time zones like \"CET\" when displaying dates.
|
||||
If non-nil, use numeric time zones like \"+0100\"."
|
||||
:type 'boolean
|
||||
;; fixme should have a :set that changes calendar-standard-time-zone-name etc.
|
||||
(defcustom calendar-time-zone-style 'symbolic
|
||||
"Your preferred style for time zones.
|
||||
If 'numeric, use numeric time zones like \"+0100\".
|
||||
Otherwise, use symbolic time zones like \"CET\"."
|
||||
:type '(choice (const numeric) (other symbolic))
|
||||
:version "28.1"
|
||||
:group 'calendar)
|
||||
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ This function is suitable for execution in an init file."
|
|||
(calendar-standard-time-zone-name
|
||||
(if (< arg 16) calendar-standard-time-zone-name
|
||||
(cond ((zerop calendar-time-zone)
|
||||
(if calendar-use-numeric-time-zones
|
||||
(if (eq calendar-time-zone-style 'numeric)
|
||||
"+0100" "UTC"))
|
||||
((< calendar-time-zone 0)
|
||||
(format "UTC%dmin" calendar-time-zone))
|
||||
|
|
@ -1016,7 +1016,7 @@ Requires floating point."
|
|||
(calendar-standard-time-zone-name
|
||||
(cond
|
||||
(calendar-time-zone calendar-standard-time-zone-name)
|
||||
(calendar-use-numeric-time-zones "+0100")
|
||||
((eq calendar-time-zone-style 'numeric) "+0100")
|
||||
(t "UTC")))
|
||||
(calendar-daylight-savings-starts
|
||||
(if calendar-time-zone calendar-daylight-savings-starts))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue