Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
counsel-set-variable: There is no ElDoc support in this buffer #549
For the variables that have a list of available options (defcustoms), counsel-set-variable works fine. But for other variables, while it still works, I always get a nag: "There is no ElDoc support in this buffer".
Actually I got this nag even for a defcustom variable
I have set it to nil in my config as below:
(setq ivy-extra-directories nil) ; default value: ("../" "./")
With point on
I have added
That "no ElDoc support" message is always displayed when
That works fine when I do
Below seems to fix this
diff --git a/counsel.el b/counsel.el index 171cd54..053850b 100644 --- a/counsel.el +++ b/counsel.el @@ -485,6 +485,7 @@ Update the minibuffer with the amount of lines collected every (sym-value (symbol-value sym)) (expr (minibuffer-with-setup-hook (lambda () + (setq-local eldoc-documentation-function #'elisp-eldoc-documentation-function) (add-hook 'completion-at-point-functions #'elisp-completion-at-point nil t) (run-hooks 'eval-expression-minibuffer-setup-hook) (goto-char (minibuffer-prompt-end))
But I do not understand why I need this hack.