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

[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



reply via email to

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