summaryrefslogtreecommitdiff
path: root/elisp/geiser-autodoc.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2016-08-24 22:45:46 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2016-08-24 22:45:46 +0200
commitaca3d7adc98ae5081e225365d36f6e06d91038e0 (patch)
tree7f0604963863e129a67e4daba02d08f2bffbfa23 /elisp/geiser-autodoc.el
parent17db0e82b07c93e066543ae958c44d98e851790a (diff)
downloadgeiser-aca3d7adc98ae5081e225365d36f6e06d91038e0.tar.gz
geiser-aca3d7adc98ae5081e225365d36f6e06d91038e0.tar.bz2
Making autodoc failures silent
As requested in github issue #173. Seems it's confusing people, which is exactly the problem it was originally trying to avoid!
Diffstat (limited to 'elisp/geiser-autodoc.el')
-rw-r--r--elisp/geiser-autodoc.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/elisp/geiser-autodoc.el b/elisp/geiser-autodoc.el
index a4cb301..c386c46 100644
--- a/elisp/geiser-autodoc.el
+++ b/elisp/geiser-autodoc.el
@@ -1,6 +1,6 @@
;; geiser-autodoc.el -- autodoc mode
-;; Copyright (C) 2009, 2010, 2011, 2012, 2015 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -191,9 +191,9 @@ when `geiser-autodoc-display-module-p' is on."
(geiser-autodoc--autodoc (geiser-syntax--scan-sexps)))
(defun geiser-autodoc--eldoc-function ()
- (condition-case e
- (and (not (geiser-autodoc--inhibit)) (geiser-autodoc--autodoc-at-point))
- (error (format "Autodoc not available (%s)" (error-message-string e)))))
+ (ignore-errors
+ (when (not (geiser-autodoc--inhibit))
+ (geiser-autodoc--autodoc-at-point))))
(defun geiser-autodoc-show ()
"Show the signature or value of the symbol at point in the echo area."