From 7df5b4deb8b13a25e0708bb5339540cea0683e2e Mon Sep 17 00:00:00 2001 From: "F. Jason Park" Date: Fri, 2 Sep 2022 21:57:57 -0700 Subject: [PATCH] Don't record undo history in erc-protocol buffers * lisp/erc/erc.el (erc-log-irc-protocol): Disable undo history. --- lisp/erc/erc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 151d75e7ce1..84c58503617 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -2571,7 +2571,8 @@ workaround." (with-current-buffer (get-buffer-create "*erc-protocol*") (save-excursion (goto-char (point-max)) - (let ((inhibit-read-only t)) + (let ((buffer-undo-list t) + (inhibit-read-only t)) (insert (if outbound (concat ts esid " >> " string) ;; Cope with multi-line messages -- 2.39.2