emacs/lisp/calendar
Stefan Monnier 1e7dae37b8 lisp/calendar: Style changes
Fix some misuses of `defconst` and `%s`, avoid uses of the old
dynbound dialect of `eval`, delete redundant `:group` arguments,
and prefer #' to quote function names.
And stop creating alists for completion tables since lists of
strings work just as well.

* lisp/calendar/appt.el: Delete redundant `:group` arguments.
Prefer #' to quote function names.

* lisp/calendar/cal-hebrew.el (solar-time-string): Declare function.
(calendar-hebrew-read-date, calendar-hebrew-list-yahrzeits):
* lisp/calendar/cal-persia.el (calendar-persian-read-date):
* lisp/calendar/cal-mayan.el (calendar-mayan-read-haab-date)
(calendar-mayan-read-tzolkin-date):
* lisp/calendar/cal-julian.el (calendar-julian-goto-date):
* lisp/calendar/cal-islam.el (calendar-islamic-read-date):
* lisp/calendar/cal-coptic.el (calendar-coptic-read-date):
* lisp/calendar/cal-bahai.el (calendar-bahai-read-date):
Completion tables can be lists of strings for decades.

* lisp/calendar/cal-china.el: Delete redundant `:group` arguments.
(calendar-chinese-zodiac-sign-on-or-after)
(calendar-chinese-new-moon-on-or-after): Use lexical dialect also
for `eval`.

* lisp/calendar/cal-dst.el: Delete redundant `:group` arguments.
Use lexical dialect also for `eval`.

* lisp/calendar/cal-html.el: Delete redundant `:group` arguments.

* lisp/calendar/cal-menu.el: Prefer #' to quote function names.

* lisp/calendar/cal-tex.el: Delete redundant `:group` arguments.
(cal-tex-weekly-common): Use lexical dialect also for `eval`.

* lisp/calendar/calendar.el (calendar-mode-map):
Prefer #' to quote function names.

* lisp/calendar/diary-icalendar.el (di:rrule-sexp-to-recurrence)
(di:other-sexp-to-recurrence): Use lexical dialect also for `eval`.

* lisp/calendar/diary-lib.el: Delete redundant `:group` arguments.
Prefer #' to quote function names.
(diary-sexp-entry, diary-offset, diary-remind): Use lexical dialect
also for `eval`.

* lisp/calendar/icalendar-macs.el (ical:define-param): Fix misuse of
`%s` in `format`.

* lisp/calendar/icalendar-parser.el (ical:value-types)
(ical:param-types, ical:property-types, ical:component-types):
Don't use `defconst` on variables we mutate.

* lisp/calendar/icalendar-recur.el (icr:current-tz-to-vtimezone)
(icr:current-tz-to-vtimezone): Use lexical dialect also for `eval`.

* lisp/calendar/icalendar.el: Delete redundant `:group` arguments.

* lisp/calendar/lunar.el: Prefer #' to quote function names.

* lisp/calendar/solar.el (solar-sunrise-sunset-string)
(calendar-sunrise-sunset-month): Use lexical dialect also for `eval`.

* lisp/calendar/timeclock.el: Prefer #' to quote function names.
2026-02-08 23:39:13 -05:00
..
appt.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-bahai.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-china.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-coptic.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-dst.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-french.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-hebrew.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-html.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-islam.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-iso.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cal-julian.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-mayan.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-menu.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-move.el Merge branch 'main' into icalendar 2026-02-08 16:05:31 -05:00
cal-persia.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-tex.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
cal-x.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
calendar.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
diary-icalendar.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
diary-lib.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
holidays.el ; 'holiday-float': Improve documentation of edge case 2026-01-10 15:37:55 +02:00
icalendar-ast.el Fix iCalendar macro (debug ...) forms and indentation 2026-02-01 09:46:09 -05:00
icalendar-macs.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
icalendar-mode.el Some minor code improvements in iCalendar library 2026-01-03 15:31:01 -05:00
icalendar-parser.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
icalendar-recur.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
icalendar-utils.el Some minor code improvements in iCalendar library 2026-01-03 15:31:01 -05:00
icalendar.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
iso8601.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lunar.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
parse-time.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
solar.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
time-date.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
timeclock.el lisp/calendar: Style changes 2026-02-08 23:39:13 -05:00
todo-mode.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00