X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/a015fb350abe50d250e3e7a9c3c762397326977f..22ecb9251e509a4224bfd315821b1c852d35b112:/company-clang.el 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