summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-28 15:48:41 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-28 15:48:41 +0100
commit466b8f71a7d6375f55b2806fb949a91d774147c6 (patch)
treebfba3f2f93f192373c59c78eb3af4e94d97ad124 /elisp/geiser-autodoc.el
parentab63255f7dbb1a4eed6f00d5c08309b169a166f3 (diff)
downloadgeiser-guile-466b8f71a7d6375f55b2806fb949a91d774147c6.tar.gz
geiser-guile-466b8f71a7d6375f55b2806fb949a91d774147c6.tar.bz2
Less noisy autodoc mode activation
Only display an activation message when called interactively.
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index 04f450e..429d369 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -221,7 +221,9 @@ displayed in the minibuffer."
(set (make-local-variable 'eldoc-minor-mode-string) nil)
(set (make-local-variable 'eldoc-idle-delay) geiser-autodoc-delay)
(eldoc-mode geiser-autodoc-mode)
- (message "Geiser Autodoc %s" (if geiser-autodoc-mode "enabled" "disabled")))
+ (when (interactive-p)
+ (message "Geiser Autodoc %s"
+ (if geiser-autodoc-mode "enabled" "disabled"))))
(defadvice eldoc-display-message-no-interference-p
(after geiser-autodoc--message-ok-p)