diff options
author | João Távora <joaotavora@gmail.com> | 2019-12-11 22:26:35 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2019-12-13 17:34:15 +0100 |
commit | 73f37da12dc7808a2be1d38787642f4900632b49 (patch) | |
tree | 27e4657b9ffab83f218709b32cbea841e7bbd8a5 /lisp/jsonrpc.el | |
parent | 84a8d07e7a3626402ff80dec1a1e6cfe69dddccf (diff) | |
download | emacs-73f37da12dc7808a2be1d38787642f4900632b49.tar.gz |
Disable undo in the process buffers of a JSONRPC connection
* lisp/jsonrpc.el (initialize-instance jsonrpc-process-connection):
Use buffer-disable-undo in stdout and stderr buffers.
* lisp/jsonrpc.el (Version): Bump to 1.0.9
Diffstat (limited to 'lisp/jsonrpc.el')
-rw-r--r-- | lisp/jsonrpc.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el index abab445fe5c..6e0a012d5f8 100644 --- a/lisp/jsonrpc.el +++ b/lisp/jsonrpc.el @@ -5,7 +5,7 @@ ;; Author: João Távora <joaotavora@gmail.com> ;; Keywords: processes, languages, extensions ;; Package-Requires: ((emacs "25.2")) -;; Version: 1.0.8 +;; Version: 1.0.9 ;; This is an Elpa :core package. Don't use functionality that is not ;; compatible with Emacs 25.2. @@ -374,8 +374,11 @@ connection object, called when the process dies .") (set-process-filter proc #'jsonrpc--process-filter) (set-process-sentinel proc #'jsonrpc--process-sentinel) (with-current-buffer (process-buffer proc) + (buffer-disable-undo) (set-marker (process-mark proc) (point-min)) (let ((inhibit-read-only t)) (erase-buffer) (read-only-mode t) proc)) + (with-current-buffer stderr + (buffer-disable-undo)) (process-put proc 'jsonrpc-connection conn))) (cl-defmethod jsonrpc-connection-send ((connection jsonrpc-process-connection) |