branch: externals/embark
commit 3b02fca752aaf4570e5c9db1f1a704b889cad165
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Disable Embark Eldoc in minibuffer
In the minibuffer the Embark target is obvious. The problem is that Eldoc
abuses
the modeline to display the Eldoc information at point, which is noisy and
unnecessary in this case.
---
embark.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/embark.el b/embark.el
index 0cd7db48b0..7544fa3e70 100644
--- a/embark.el
+++ b/embark.el
@@ -1000,7 +1000,8 @@ If CYCLE is non-nil bind `embark-cycle'."
"Eldoc function reporting the first Embark target at point.
This function uses the eldoc REPORT callback and is meant to be
added to `eldoc-documentation-functions'."
- (when-let ((target (car (embark--targets))))
+ (when-let (((not (minibufferp)))
+ (target (car (embark--targets))))
(funcall report
(format "Embark on %s ā%sā"
(plist-get target :type)
@@ -1011,7 +1012,8 @@ added to `eldoc-documentation-functions'."
"Eldoc function reporting the types of all Embark targets at point.
This function uses the eldoc REPORT callback and is meant to be
added to `eldoc-documentation-functions'."
- (when-let ((targets (embark--targets)))
+ (when-let (((not (minibufferp)))
+ (targets (embark--targets)))
(funcall report
(format "Embark target types: %s"
(mapconcat