[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 08/31: Wrap `company-call-backend' in `condition-case'
From: |
Dmitry Gutov |
Subject: |
[elpa] 08/31: Wrap `company-call-backend' in `condition-case' |
Date: |
Tue, 18 Mar 2014 05:19:35 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit b5a41ac931498556d481a29b7c7b3767b5d98367
Author: Dmitry Gutov <address@hidden>
Date: Mon Feb 24 08:09:50 2014 +0200
Wrap `company-call-backend' in `condition-case'
---
company.el | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/company.el b/company.el
index a3bac0e..8482035 100644
--- a/company.el
+++ b/company.el
@@ -762,9 +762,12 @@ means that `company-mode' is always turned on except in
`message-mode' buffers."
dir (file-name-directory (directory-file-name dir))))))))
(defun company-call-backend (&rest args)
- (if (functionp company-backend)
- (apply company-backend args)
- (apply 'company--multi-backend-adapter company-backend args)))
+ (condition-case err
+ (if (functionp company-backend)
+ (apply company-backend args)
+ (apply 'company--multi-backend-adapter company-backend args))
+ (error (error "Company: Back-end %s error \"%s\" with args %s"
+ company-backend (error-message-string err) args))))
(defun company--multi-backend-adapter (backends command &rest args)
(let ((backends (loop for b in backends
- [elpa] 16/31: Tag candidates from grouped backends, (continued)
- [elpa] 16/31: Tag candidates from grouped backends, Dmitry Gutov, 2014/03/18
- [elpa] 17/31: Add company-yasnippet, Dmitry Gutov, 2014/03/18
- [elpa] 22/31: company-sort-by-occurrence: do stable sorting, Dmitry Gutov, 2014/03/18
- [elpa] 20/31: Fix company-yasnippet summary, Dmitry Gutov, 2014/03/18
- [elpa] 23/31: Define company-version, Dmitry Gutov, 2014/03/18
- [elpa] 24/31: company-yasnippet: autoload, to make it easy to use separately, Dmitry Gutov, 2014/03/18
- [elpa] 27/31: company-semantic--current-tags: make buffer-local, Dmitry Gutov, 2014/03/18
- [elpa] 25/31: company-keywords-alist: add missing question mark, Dmitry Gutov, 2014/03/18
- [elpa] 29/31: Remove leftover debug statement, Dmitry Gutov, 2014/03/18
- [elpa] 28/31: company-semantic: don't try to fetch doc for tag without buffer, Dmitry Gutov, 2014/03/18
- [elpa] 08/31: Wrap `company-call-backend' in `condition-case',
Dmitry Gutov <=
- [elpa] 26/31: Support the keyword :with, Dmitry Gutov, 2014/03/18
- [elpa] 30/31: Release 0.7.1, Dmitry Gutov, 2014/03/18
- [elpa] 31/31: Merge commit '7be4321260f0c73ef4c3cadc646f6bb496650253' from company, Dmitry Gutov, 2014/03/18
- [elpa] 21/31: company-init-backend: don't try to initialize lambdas, Dmitry Gutov, 2014/03/18
- [elpa] 03/31: Remove company-bbdb-records, it was unused, Dmitry Gutov, 2014/03/18
- [elpa] 02/31: Declare bbdb functions, instead of requiring it, Dmitry Gutov, 2014/03/18
- [elpa] 06/31: Hopefully fix the Emacs 23 breakage, Dmitry Gutov, 2014/03/18