Make the help page mention the customizeable global mode variable

* lisp/help-fns.el (help-fns--customize-variable): Factor out into
own function for reuse.
(help-fns--globalized-minor-mode): Use it to mention the
equivalent variable.

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Mark globalized minor modes as such (bug#7177).
This commit is contained in:
Lars Ingebrigtsen 2019-10-01 16:45:24 +02:00
parent 28b7dd4ee4
commit bc95fc78bb
2 changed files with 27 additions and 18 deletions

View file

@ -418,6 +418,7 @@ on if the hook has explicitly disabled it.
`(progn
(progn
(put ',global-mode 'globalized-minor-mode t)
:autoload-end
(defvar ,MODE-major-mode nil)
(make-variable-buffer-local ',MODE-major-mode))