1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 02:50:26 -08:00
emacs/lisp/calendar
dickmao 0a094fb65c Rewrite hl-line-mode
The fashion of dual global and minor modes, each managing a replica of
state, has long been outmoded by globalized minor modes (nee
easy-mmode-define-global-mode) around the turn of the century.

* lisp/calendar/todo-mode.el (todo-toggle-item-highlighting,
todo-hl-line-range, todo-modes-set-2): Adapt to new
hl-line-highlight-hook.
* lisp/hl-line.el (hl-line-overlay): Rename hl-line--overlay.
(global-hl-line-overlay, global-hl-line-overlays,
global-hl-line-sticky-flag, hl-line-overlay-buffer,
hl-line-range-function): Obsolesce.
(hl-line--overlay): Erstwhile hl-line-overlay.
(hl-line, hl-line-face): Consolidate.
(hl-line-sticky-flag): Say less (Gen Z Hospital).
(hl-line-overlay-priority): Make this a custom.
(hl-line-highlight-hook): Prefer hook over specialized
hl-line-range-function.
(hl-line-mode): Say less (Gen Z Hospital).
(hl-line-make-overlay): Remove
(hl-line-highlight, hl-line-unhighlight): Rewrite.
(hl-line-maybe-unhighlight): Remove.
(hl-line-turn-on): Necessary for globalized minor mode.
(global-hl-line-mode, global-hl-line-highlight,
global-hl-line-highlight-all, global-hl-line-unhighlight,
global-hl-line-maybe-unhighlight, global-hl-line-unhighlight-all):
Prefer globalized minor mode.
(hl-line-move, hl-line-unload-function): Remove.
* test/lisp/calendar/todo-mode-tests.el (todo-test-item-highlighting,
todo-test-done-items-separator06-bol,
todo-test-done-items-separator06-eol,
todo-test-done-items-separator07): Adapt to consolidated face.
2022-03-21 16:07:18 +01:00
..
appt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-bahai.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-china.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-coptic.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-dst.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-french.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-hebrew.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-html.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-islam.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-iso.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-julian.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-mayan.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-menu.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-move.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-persia.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-tex.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cal-x.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
calendar.el Make calendar-exit actually respect the KILL parameter 2022-02-09 09:32:50 +01:00
diary-lib.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
holidays.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
icalendar.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
iso8601.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
lunar.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
parse-time.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
solar.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
time-date.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
timeclock.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
todo-mode.el Rewrite hl-line-mode 2022-03-21 16:07:18 +01:00