]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't record undo history in erc-protocol buffers
authorF. Jason Park <jp@neverwas.me>
Sat, 3 Sep 2022 04:57:57 +0000 (21:57 -0700)
committerF. Jason Park <jp@neverwas.me>
Tue, 20 Sep 2022 00:54:46 +0000 (17:54 -0700)
* lisp/erc/erc.el (erc-log-irc-protocol): Disable undo history.

lisp/erc/erc.el

index 151d75e7ce17c5641c21a7c3edf57bd5513286b3..84c58503617667e4b8123557891f13d4e71eed77 100644 (file)
@@ -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