emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7df5b4deb8 3/5: Don't record undo history in erc-protocol buffers


From: F. Jason Park
Subject: master 7df5b4deb8 3/5: Don't record undo history in erc-protocol buffers
Date: Mon, 19 Sep 2022 21:14:30 -0400 (EDT)

branch: master
commit 7df5b4deb8b13a25e0708bb5339540cea0683e2e
Author: F. Jason Park <jp@neverwas.me>
Commit: F. Jason Park <jp@neverwas.me>

    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 151d75e7ce..84c5850361 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]