emacs-gpu/doc
Stefan Monnier 17e26cf57e (define-globalized-minor-mode): Require the use of run-mode-hooks
When `define-globalized-minor-mode` was introduced (Emacs-22),
`run-mode-hooks` was brand new, so we could not expect all major
modes to use it and we had to rely on brittle workarounds to try
and approximate `after-change-major-mode-hook`.

These workarounds have undesirable side effects, and (we hope)
they're not needed any more now that virtually all major modes
have been changed to use `run-mode-hooks` (or
`define-derived-mode`).

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Rely only on `after-change-major-mode-hook`, remove the "cmhh"
[typo for the intended "cmmh", BTW] workaround.

* doc/lispref/modes.texi (Mode Hooks): Clarify the importance of
`after-change-major-mode-hook` w.r.t `define-globalized-minor-mode`.
(Defining Minor Modes): Rewrite the explanation of which buffers
are affected, including adjusting it to the fact that
`fundamental-mode` has used run `run-mode-hooks` for last 10 years.
2024-04-13 10:31:28 -04:00
..
emacs Merge from origin/emacs-29 2024-04-13 07:37:13 -04:00
lispintro Fix info-xref-tests 2024-01-13 20:38:34 +02:00
lispref (define-globalized-minor-mode): Require the use of run-mode-hooks 2024-04-13 10:31:28 -04:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc ; Fix documentation of a recent change in dbus.el (bug#70301) 2024-04-12 14:26:27 +03:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00