From: Dmitry Gutov Date: Mon, 2 Feb 2015 17:07:20 +0000 (+0200) Subject: company-clang--start-process: Disable undo in the output buffer X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/22ecb9251e509a4224bfd315821b1c852d35b112 company-clang--start-process: Disable undo in the output buffer A right thing to do, but it's gives no discernible performance improvement. --- diff --git a/company-clang.el b/company-clang.el index e85e8655b..4929bad41 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 86d93c238..bcb5d53c8 100644 --- a/company.el +++ b/company.el @@ -5,7 +5,7 @@ ;; Author: Nikolaj Schumacher ;; Maintainer: Dmitry Gutov ;; 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"))