From: F. Jason Park Date: Sat, 3 Sep 2022 04:57:57 +0000 (-0700) Subject: Don't record undo history in erc-protocol buffers X-Git-Tag: emacs-29.0.90~1856^2~365 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7df5b4deb8b13a25e0708bb5339540cea0683e2e;p=emacs.git Don't record undo history in erc-protocol buffers * lisp/erc/erc.el (erc-log-irc-protocol): Disable undo history. --- 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