diff options
| author | Stefan Monnier | 2025-10-14 11:21:29 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2025-10-14 11:47:05 -0400 |
| commit | 171c7fd6df861ab71f6cc8faedb8ff68bfac4bae (patch) | |
| tree | 7bef470688a7ae75962948886bd51ec8f3a2795e /java/incrementing-version-code | |
| parent | 3aae55acfc5b43ebe436dfc57937db217ccc0891 (diff) | |
| download | emacs-171c7fd6df861ab71f6cc8faedb8ff68bfac4bae.tar.gz emacs-171c7fd6df861ab71f6cc8faedb8ff68bfac4bae.zip | |
(define-minor-mode): Update `global-minor-modes` if init-value is non-nil
When a global minor mode is enabled by init-value rather than by
calling the major mode function, we failed to register it in
`global-minor-modes` (bug#79518).
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Register
ourselves in `global-minor-modes` at top-level for global modes
with a non-nil init-value.
Also in the `modefun`, simply the code with `not` and `add-to-list`
and consolidate the local/global paths to update `*-minor-modes`.
* lisp/simple.el (global-minor-modes): Move to...
* lisp/subr.el (global-minor-modes): ...here so it's defined early enough
for `auto-compression-mode` to register itself.
Diffstat (limited to 'java/incrementing-version-code')
0 files changed, 0 insertions, 0 deletions