]> code.delx.au - gnu-emacs-elpa/commitdiff
Separate executable from arguments in the error output buffer
authorChen Bin <Chen.Bin@optus.com.au>
Sun, 28 Jul 2013 10:01:51 +0000 (13:01 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 28 Jul 2013 10:01:51 +0000 (13:01 +0300)
Fixes #27

company-clang.el

index 52bb6e6ad073747c5ed99e56f819fd47faa665ad..6d1737a7f1ce3ae06a1d1c32f555efaf4b6f34c4 100644 (file)
@@ -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)