emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/embark 3b02fca752 1/4: Disable Embark Eldoc in minibuff


From: ELPA Syncer
Subject: [elpa] externals/embark 3b02fca752 1/4: Disable Embark Eldoc in minibuffer
Date: Tue, 21 Feb 2023 12:57:45 -0500 (EST)

branch: externals/embark
commit 3b02fca752aaf4570e5c9db1f1a704b889cad165
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]