Don't call undefined function elisp-eldoc-documentation-function (bug#42493)

* lisp/ielm.el (inferior-emacs-lisp-mode): Add
`elisp-eldoc-var-docstring' and `elisp-eldoc-funcall' as
`eldoc-documentation-functions' instead of the undefined
elisp-eldoc-documentation-function (bug#42493).
This commit is contained in:
Tassilo Horn 2020-07-23 22:05:26 +02:00
parent 0d7d422b76
commit f7ebba5724

View file

@ -537,7 +537,9 @@ Customized bindings may be defined in `ielm-map', which currently contains:
'(comint-replace-by-expanded-history
ielm-complete-filename elisp-completion-at-point))
(add-hook 'eldoc-documentation-functions
#'elisp-eldoc-documentation-function nil t)
#'elisp-eldoc-var-docstring nil t)
(add-hook 'eldoc-documentation-functions
#'elisp-eldoc-funcall nil t)
(set (make-local-variable 'ielm-prompt-internal) ielm-prompt)
(set (make-local-variable 'comint-prompt-read-only) ielm-prompt-read-only)
(setq comint-get-old-input 'ielm-get-old-input)