[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 779662f 24/66: Truncate the Clang error in the echo area
From: |
Dmitry Gutov |
Subject: |
[elpa] master 779662f 24/66: Truncate the Clang error in the echo area |
Date: |
Mon, 5 Nov 2018 18:19:16 -0500 (EST) |
branch: master
commit 779662f9e994c351002107a18f99cd06e00ed6c1
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Truncate the Clang error in the echo area
Closes #788
---
company-clang.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/company-clang.el b/company-clang.el
index 90a372e..962db1e 100644
--- a/company-clang.el
+++ b/company-clang.el
@@ -183,11 +183,12 @@ or automatically through a custom
`company-clang-prefix-guesser'."
(let* ((buf (get-buffer-create company-clang--error-buffer-name))
(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)
(buffer-substring-no-properties (point-min)
(1- (match-beginning 0)))
;; Warn the user more aggressively if no match was found.
- (message "clang failed with error %d:\n%s" res cmd)
+ (message "clang failed with error %d: %s" res cmd)
(buffer-string))))
(with-current-buffer buf
- [elpa] master f1aef4d 45/66: add reference url for go-mode's keywords, (continued)
- [elpa] master f1aef4d 45/66: add reference url for go-mode's keywords, Dmitry Gutov, 2018/11/05
- [elpa] master 4d921fe 39/66: Merge pull request #817 from chunzhouyu/master, Dmitry Gutov, 2018/11/05
- [elpa] master 1c76850 50/66: Reformat, Dmitry Gutov, 2018/11/05
- [elpa] master ddfdcb7 20/66: Abort when completion-at-point is invoked, Dmitry Gutov, 2018/11/05
- [elpa] master 5015aad 41/66: Switch to npostavs/emacs-travis binaries, Dmitry Gutov, 2018/11/05
- [elpa] master 1c28831 51/66: add some golang's builtin funcitons to go-mode, Dmitry Gutov, 2018/11/05
- [elpa] master c984355 52/66: resort the go-mode in company-keywords.el, Dmitry Gutov, 2018/11/05
- [elpa] master 4205ad6 61/66: Merge pull request #830 from jabranham/alias, Dmitry Gutov, 2018/11/05
- [elpa] master 63fdb96 40/66: add some golang fake keywords for a better programming experience, Dmitry Gutov, 2018/11/05
- [elpa] master 9e8bd0b 42/66: Merge pull request #821 from iquiw/emacs-travis-bin, Dmitry Gutov, 2018/11/05
- [elpa] master 779662f 24/66: Truncate the Clang error in the echo area,
Dmitry Gutov <=
- [elpa] master a913803 27/66: company-diag: Catch any error in `completions', Dmitry Gutov, 2018/11/05
- [elpa] master ae9dd22 32/66: Make fixes after Dmitry's comments, Dmitry Gutov, 2018/11/05
- [elpa] master e14cd4f 46/66: add some comments for adding go-mode's fake keywords, Dmitry Gutov, 2018/11/05
- [elpa] master 2d87b1f 44/66: fix golang's keywords sort, Dmitry Gutov, 2018/11/05
- [elpa] master d2db92b 53/66: Update company-keywords.el, Dmitry Gutov, 2018/11/05
- [elpa] master 045b23a 38/66: move golang's keywords to the right place, Dmitry Gutov, 2018/11/05
- [elpa] master 382764a 34/66: Merge pull request #798 from joaotavora/master, Dmitry Gutov, 2018/11/05
- [elpa] master 87f479b 59/66: Merge pull request #829 from chunzhouyu/master, Dmitry Gutov, 2018/11/05
- [elpa] master 7c6357a 60/66: Define variable alias before referent, Dmitry Gutov, 2018/11/05
- [elpa] master 88b8282 58/66: add nil and bool to company-keywords for go-mode, Dmitry Gutov, 2018/11/05