summaryrefslogtreecommitdiff
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
commit29a65929e1107d941b328aff3f98b772c7f28c70 (patch)
tree231d3ed3f9af96a36092f9e4a5156144b68b8b6f
parentd06e8983b1c49c681eb2ce22d001fd6125a3e9b3 (diff)
downloadgeiser-29a65929e1107d941b328aff3f98b772c7f28c70.tar.gz
geiser-29a65929e1107d941b328aff3f98b772c7f28c70.tar.bz2
Less noisy autodoc mode activation
Only display an activation message when called interactively.
-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)