From 20a1a2a6a3db2259765be232ab45e83b82a6b6d3 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 24 Aug 2016 22:45:46 +0200 Subject: 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! --- elisp/geiser-autodoc.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'elisp') 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." -- cgit v1.2.3