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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 92b0bf7 06/29: Use pipes instead of PTYs to receive output


From: Dmitry Gutov
Subject: [elpa] master 92b0bf7 06/29: Use pipes instead of PTYs to receive output from Clang
Date: Tue, 28 Mar 2017 20:50:34 -0400 (EDT)

branch: master
commit 92b0bf73c49cca1221893fe4d2463bfede49c013
Author: Juergen Hoetzel <address@hidden>
Commit: Juergen Hoetzel <address@hidden>

    Use pipes instead of PTYs to receive output from Clang
    
    We don't need any job control features. Also Pipes are more efficient and 
more
    robust than PTYs, which Emacs uses by default.
    
    Fixes #620.
---
 company-clang.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/company-clang.el b/company-clang.el
index 54d4b9b..36d04ec 100644
--- a/company-clang.el
+++ b/company-clang.el
@@ -208,8 +208,9 @@ or automatically through a custom 
`company-clang-prefix-guesser'."
       (with-current-buffer buf
         (erase-buffer)
         (setq buffer-undo-list t))
-      (let ((process (apply #'start-process "company-clang" buf
-                            company-clang-executable args)))
+      (let* ((process-connection-type nil)
+             (process (apply #'start-process "company-clang" buf
+                             company-clang-executable args)))
         (set-process-sentinel
          process
          (lambda (proc status)



reply via email to

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