diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 60d8fdd6aee..c8bba6e592e 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -90,6 +90,19 @@ ;; ;; +;; A note on how dates are represented: + +;; The standard format for a (Gregorian) calendar date in this file is a +;; list of integers (MONTH DAY YEAR) -- see the functions +;; `calendar-extract-year', `calendar-extract-month', and +;; `calendar-extract-day'. Internally it also uses an "absolute" format +;; which is an integer number of days since December 31, 1BC on the +;; Gregorian calendar (see e.g. `calendar-absolute-from-gregorian'), and +;; converts between different calendar scales by converting to and from +;; the absolute format (see e.g. `calendar-iso-from-absolute' in +;; cal-iso.el). This representation is also useful for certain +;; calculations; e.g. `calendar-day-of-week' is simply the absolute +;; represention modulo 7, because December 31, 1BC is a Sunday. ;; A note on free variables: diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 1fd86863a69..58e65bd9e98 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1594,6 +1594,8 @@ it is displayed along with the global value." (prin1-to-string (nth 1 var))))) (set (nth 0 var) (read str))))) +(autoload 'shortdoc-help-fns-examples-function "shortdoc") + (defun help-fns--run-describe-functions (functions &rest args) (with-current-buffer standard-output (unless (bolp) diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 9d2969d6ac4..6fa3e51b34b 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el @@ -839,7 +839,8 @@ Calls REPORT-FN directly." (derived-mode-add-parents 'lua-ts-mode '(lua-mode)) (when (treesit-ready-p 'lua) - (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode))) + (add-to-list 'auto-mode-alist '("\\.lua\\'" . lua-ts-mode)) + (add-to-list 'interpreter-mode-alist '("\\