]> git.eshelyaron.com Git - emacs.git/commit
Respect global-eldoc-mode in minibuffers (Bug#36886)
authorNoam Postavsky <npostavs@gmail.com>
Sun, 4 Aug 2019 00:19:31 +0000 (20:19 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 21 Aug 2019 00:20:52 +0000 (20:20 -0400)
commit7e2090ee80c9099ee953392444e1d73d10e973d4
tree5fc7f91f27dd90b1b8e1a52ec8fb444de043c2ea
parent5a9552128296478ec74594b45d0728d87450197e
Respect global-eldoc-mode in minibuffers (Bug#36886)

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Accept
a BODY parameter.
* doc/lispref/modes.texi (Defining Minor Modes): Document new
parameter.
* etc/NEWS: Announce it.

* lisp/simple.el (read--expression): Move eldoc-mode setup to...
* lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): ... here,
new function.
(global-eldoc-mode): Add or remove it to
eval-expression-minibuffer-setup-hook when enabling or disabling
global-eldoc-mode.  This enables eldoc in the minibuffer (solving
Bug#27202), only when global-eldoc-mode is enabled.
doc/lispref/modes.texi
etc/NEWS
lisp/emacs-lisp/easy-mmode.el
lisp/emacs-lisp/eldoc.el
lisp/simple.el