Skip to content

Commit 502c6d3

Browse files
committed
[Fix #1105] Set eldoc function when reading from minibuffer
Emacs supports eldoc also in the minibuffer. For that, one can add eldoc-mode to eval-expression-minibuffer-setup-hook. cider-read-from-minibuffer runs the functions in that hook but doesn't set eldoc-documentation-function for the minibuffer. Therefore, one gets an eldoc message telling that eldoc isn't supported when cider-read-from-minibuffer is called and eldoc-mode is in eval-expression-minibuffer-setup-hook. This patch sets eldoc-documentation-function locally in the minibuffer before cider-read-from-minibuffer runs the functions in eval-expression-minibuffer-setup-hook.
1 parent c43b727 commit 502c6d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cider-interaction.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ reading input."
519519
(set-syntax-table clojure-mode-syntax-table)
520520
(add-hook 'completion-at-point-functions
521521
#'cider-complete-at-point nil t)
522+
(setq-local eldoc-documentation-function #'cider-eldoc)
522523
(run-hooks 'eval-expression-minibuffer-setup-hook))
523524
(read-from-minibuffer prompt initial-value
524525
cider-minibuffer-map nil

0 commit comments

Comments
 (0)