]> code.delx.au - gnu-emacs/blobdiff - lisp/simple.el
Use eldoc-documentation-functions
[gnu-emacs] / lisp / simple.el
index a757876328b5f61871c670d025752fe6438ed12a..06d1b927e1587232b64f0100fe846de330d3d973 100644 (file)
@@ -1443,8 +1443,8 @@ result of expression evaluation."
     (minibuffer-with-setup-hook
         (lambda ()
           ;; FIXME: call emacs-lisp-mode?
-          (add-function :before-until (local 'eldoc-documentation-function)
-                        #'elisp-eldoc-documentation-function)
+          (add-hook 'eldoc-documentation-functions
+                    #'elisp-eldoc-documentation-function nil t)
           (add-hook 'completion-at-point-functions
                     #'elisp-completion-at-point nil t)
           (run-hooks 'eval-expression-minibuffer-setup-hook))