emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b030ebf 1/6: Avoid repeated file-error by eldoc due to mis


From: Leo Liu
Subject: [elpa] master b030ebf 1/6: Avoid repeated file-error by eldoc due to missing global
Date: Thu, 11 Jun 2015 23:19:42 +0000

branch: master
commit b030ebf025a3a797052e85b766d710d8a3c2c544
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>

    Avoid repeated file-error by eldoc due to missing global
---
 ggtags.el |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ggtags.el b/ggtags.el
index d3973b2..0fa8260 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2013-2015  Free Software Foundation, Inc.
 
 ;; Author: Leo Liu <address@hidden>
-;; Version: 0.8.9
+;; Version: 0.8.10
 ;; Keywords: tools, convenience
 ;; Created: 2013-01-29
 ;; URL: https://github.com/leoliu/ggtags
@@ -2256,7 +2256,13 @@ to nil disables displaying this information.")
                   ;; Prevent multiple runs of ggtags-show-definition
                   ;; for the same tag.
                   (setq ggtags-eldoc-cache (list tag))
-                  (ggtags-show-definition tag)
+                  (condition-case err
+                      (ggtags-show-definition tag)
+                    (file-error
+                     (remove-function (local 'eldoc-documentation-function)
+                                      'ggtags-eldoc-function)
+                     (message "\
+Function `ggtags-eldoc-function' disabled for eldoc in current buffer: %S" 
err)))
                   nil))))))
 
 ;;; imenu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]