summaryrefslogtreecommitdiff
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
commit20a1a2a6a3db2259765be232ab45e83b82a6b6d3 (patch)
tree0eca7d3324c812ddeca5ca9e1a4995d899f36d70
parent9f93205d32bfe1725ec39779493d12fbbe5fd605 (diff)
downloadgeiser-guile-20a1a2a6a3db2259765be232ab45e83b82a6b6d3.tar.gz
geiser-guile-20a1a2a6a3db2259765be232ab45e83b82a6b6d3.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!
-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."