]> code.delx.au - gnu-emacs-elpa/commitdiff
company-clang--start-process: Disable undo in the output buffer
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Feb 2015 17:07:20 +0000 (19:07 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 2 Feb 2015 17:07:43 +0000 (19:07 +0200)
A right thing to do, but it's gives no discernible performance improvement.

company-clang.el
company.el

index e85e8655bfcb9513393e9fbc91e4223f605a14a6..4929bad414561050e7f8fee7afe36b98ef85340e 100644 (file)
@@ -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
index 86d93c238b13c6193126cf84c514a3ea2361ae5a..bcb5d53c8f4af9901695a3e282d8b75295fe3588 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author: Nikolaj Schumacher
 ;; Maintainer: Dmitry Gutov <dgutov@yandex.ru>
 ;; 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"))