[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f24b794 32/38: Make sure the error text is present before
From: |
Dmitry Gutov |
Subject: |
[elpa] master f24b794 32/38: Make sure the error text is present before trying to use it |
Date: |
Sat, 25 Jul 2020 19:51:16 -0400 (EDT) |
branch: master
commit f24b7947b60ec92a41177cbfa63eda2ae94309a5
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Make sure the error text is present before trying to use it
Fixes #878
---
company-clang.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/company-clang.el b/company-clang.el
index 272dd8f..1460e09 100644
--- a/company-clang.el
+++ b/company-clang.el
@@ -194,7 +194,11 @@ or automatically through a custom
`company-clang-prefix-guesser'."
(cmd (concat company-clang-executable " " (mapconcat 'identity args "
")))
(pattern (format company-clang--completion-pattern ""))
(message-truncate-lines t)
- (err (if (re-search-forward pattern nil t)
+ (err (if (and (re-search-forward pattern nil t)
+ ;; Something in the Windows build?
+ ;; Looks like Clang doesn't always include the error
text
+ ;; before completions (even if exited with error).
+ (> (match-beginning 0) (point-min)))
(buffer-substring-no-properties (point-min)
(1- (match-beginning 0)))
;; Warn the user more aggressively if no match was found.
- [elpa] master 56a846c 25/38: Add a NEWS entry, (continued)
- [elpa] master 56a846c 25/38: Add a NEWS entry, Dmitry Gutov, 2020/07/25
- [elpa] master 6cf5169 23/38: Update copyright years, Dmitry Gutov, 2020/07/25
- [elpa] master c59c85b 24/38: Merge branch 'master' into company-tng-with-post-completion, Dmitry Gutov, 2020/07/25
- [elpa] master e93b3dc 30/38: [company-files] Make post-completion command a dedicated function, Dmitry Gutov, 2020/07/25
- [elpa] master 1c7a872 31/38: Merge pull request #983 from qhuyduong/make-post-completion-command-dedicated-function, Dmitry Gutov, 2020/07/25
- [elpa] master 6a39f31 38/38: Merge commit '656ad10670512e135a0a5881f127bb7a789ef8ca' from company, Dmitry Gutov, 2020/07/25
- [elpa] master 955f80e 19/38: company-doc-buffer: Make sure to reset the major mode, Dmitry Gutov, 2020/07/25
- [elpa] master db0596b 26/38: Merge branch 'master' of github.com:company-mode/company-mode, Dmitry Gutov, 2020/07/25
- [elpa] master 1f56bec 36/38: company-diag: Print out completion-at-point-functions too, Dmitry Gutov, 2020/07/25
- [elpa] master 6333fc4 29/38: Mention when, Dmitry Gutov, 2020/07/25
- [elpa] master f24b794 32/38: Make sure the error text is present before trying to use it,
Dmitry Gutov <=
- [elpa] master 7d9d72c 33/38: Set tooltip background color for terminals with less than 88 colors, Dmitry Gutov, 2020/07/25
- [elpa] master 8ec972b 17/38: Defer company-reformat a little, Dmitry Gutov, 2020/07/25
- [elpa] master 61ddd9a 21/38: Merge pull request #968 from condy0919/master, Dmitry Gutov, 2020/07/25
- [elpa] master fdde3d1 27/38: Merge pull request #946 from company-mode/company-tng-with-post-completion, Dmitry Gutov, 2020/07/25
- [elpa] master 21f3b0f 28/38: Revert "company-input-noop still seems to be needed in the terminal", Dmitry Gutov, 2020/07/25
- [elpa] master b94ab88 34/38: Merge pull request #986 from hanazuki/default-tooltip-bg, Dmitry Gutov, 2020/07/25
- [elpa] master 36e650a 35/38: Fix company-tooltip definition in Emacs < 28, Dmitry Gutov, 2020/07/25
- [elpa] master 656ad10 37/38: Release 0.9.13, Dmitry Gutov, 2020/07/25