From: Chen Bin Date: Sun, 28 Jul 2013 10:01:51 +0000 (+0300) Subject: Separate executable from arguments in the error output buffer X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/5ad905a6aaf79c4f2a0018cd954e1414e542fff4 Separate executable from arguments in the error output buffer Fixes #27 --- diff --git a/company-clang.el b/company-clang.el index 52bb6e6ad..6d1737a7f 100644 --- a/company-clang.el +++ b/company-clang.el @@ -145,7 +145,7 @@ or automatically through a custom `company-clang-prefix-guesser'." (defun company-clang--handle-error (res args) (goto-char (point-min)) (let* ((buf (get-buffer-create company-clang--error-buffer-name)) - (cmd (concat company-clang-executable (mapconcat 'identity args " "))) + (cmd (concat company-clang-executable " " (mapconcat 'identity args " "))) (pattern (format company-clang--completion-pattern "")) (err (if (re-search-forward pattern nil t) (buffer-substring-no-properties (point-min)