diff options
| author | Noam Postavsky | 2019-08-03 20:19:31 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2019-08-20 20:20:52 -0400 |
| commit | 7e2090ee80c9099ee953392444e1d73d10e973d4 (patch) | |
| tree | 5fc7f91f27dd90b1b8e1a52ec8fb444de043c2ea /doc | |
| parent | 5a9552128296478ec74594b45d0728d87450197e (diff) | |
| download | emacs-7e2090ee80c9099ee953392444e1d73d10e973d4.tar.gz emacs-7e2090ee80c9099ee953392444e1d73d10e973d4.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/modes.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 764a67e3627..7185c243e24 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1783,12 +1783,12 @@ don't need any. | |||
| 1783 | (hungry-electric-delete t))))) | 1783 | (hungry-electric-delete t))))) |
| 1784 | @end smallexample | 1784 | @end smallexample |
| 1785 | 1785 | ||
| 1786 | @defmac define-globalized-minor-mode global-mode mode turn-on keyword-args@dots{} | 1786 | @defmac define-globalized-minor-mode global-mode mode turn-on keyword-args@dots{} body@dots{} |
| 1787 | This defines a global toggle named @var{global-mode} whose meaning is | 1787 | This defines a global toggle named @var{global-mode} whose meaning is |
| 1788 | to enable or disable the buffer-local minor mode @var{mode} in all | 1788 | to enable or disable the buffer-local minor mode @var{mode} in all |
| 1789 | buffers. To turn on the minor mode in a buffer, it uses the function | 1789 | buffers. It also executes the @var{body} forms. To turn on the minor |
| 1790 | @var{turn-on}; to turn off the minor mode, it calls @var{mode} with | 1790 | mode in a buffer, it uses the function @var{turn-on}; to turn off the |
| 1791 | @minus{}1 as argument. | 1791 | minor mode, it calls @var{mode} with @minus{}1 as argument. |
| 1792 | 1792 | ||
| 1793 | Globally enabling the mode also affects buffers subsequently created | 1793 | Globally enabling the mode also affects buffers subsequently created |
| 1794 | by visiting files, and buffers that use a major mode other than | 1794 | by visiting files, and buffers that use a major mode other than |