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

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

[elpa] master 22ecb92 001/173: company-clang--start-process: Disable und


From: Dmitry Gutov
Subject: [elpa] master 22ecb92 001/173: company-clang--start-process: Disable undo in the output buffer
Date: Thu, 23 Jun 2016 00:28:33 +0000 (UTC)

branch: master
commit 22ecb9251e509a4224bfd315821b1c852d35b112
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-clang--start-process: Disable undo in the output buffer
    
    A right thing to do, but it's gives no discernible performance improvement.
---
 company-clang.el |    6 ++++--
 company.el       |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/company-clang.el b/company-clang.el
index e85e865..4929bad 100644
--- a/company-clang.el
+++ b/company-clang.el
@@ -1,6 +1,6 @@
 ;;; company-clang.el --- company-mode completion back-end for Clang  -*- 
lexical-binding: t -*-
 
-;; Copyright (C) 2009, 2011, 2013-2014  Free Software Foundation, Inc.
+;; Copyright (C) 2009, 2011, 2013-2015  Free Software Foundation, Inc.
 
 ;; Author: Nikolaj Schumacher
 
@@ -191,7 +191,9 @@ or automatically through a custom 
`company-clang-prefix-guesser'."
         (buf (get-buffer-create "*clang-output*"))
         ;; Looks unnecessary in Emacs 25.1 and later.
         (process-adaptive-read-buffering nil))
-    (with-current-buffer buf (erase-buffer))
+    (with-current-buffer buf
+      (erase-buffer)
+      (setq buffer-undo-list t))
     (if (get-buffer-process buf)
         (funcall callback nil)
       (let ((process (apply #'start-process "company-clang" buf
diff --git a/company.el b/company.el
index 86d93c2..bcb5d53 100644
--- a/company.el
+++ b/company.el
@@ -5,7 +5,7 @@
 ;; Author: Nikolaj Schumacher
 ;; Maintainer: Dmitry Gutov <address@hidden>
 ;; URL: http://company-mode.github.io/
-;; Version: 0.8.10
+;; Version: 0.9.0-cvs
 ;; Keywords: abbrev, convenience, matching
 ;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
 



reply via email to

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