Enable eldoc-mode explicitly inside read--expression

* lisp/simple.el (read--expression): Call eldoc-mode (bug#27202).
This commit is contained in:
Dmitry Gutov 2017-06-06 01:04:04 +03:00
parent f858c585a3
commit a003e87be7

View file

@ -1484,6 +1484,7 @@ display the result of expression evaluation."
;; FIXME: call emacs-lisp-mode?
(add-function :before-until (local 'eldoc-documentation-function)
#'elisp-eldoc-documentation-function)
(eldoc-mode 1)
(add-hook 'completion-at-point-functions
#'elisp-completion-at-point nil t)
(run-hooks 'eval-expression-minibuffer-setup-hook))