branch: master
commit 779662f9e994c351002107a18f99cd06e00ed6c1
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
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