]> git.eshelyaron.com Git - emacs.git/commit
Clear buffer-undo-list after sending input in ERC
authorF. Jason Park <jp@neverwas.me>
Sun, 24 Nov 2024 23:30:02 +0000 (15:30 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Dec 2024 17:02:16 +0000 (18:02 +0100)
commit2111af98c9ae2cba9cdfbd0abbd27f078cb633ff
treeaa923678fa14b1b16580a5e3d7a0b92bfa12f041
parent30a8ec4c57b71a4679be6c0bd1572214d5fe7ca4
Clear buffer-undo-list after sending input in ERC

* lisp/erc/erc.el (erc-insert-line): Assume `erc-insert-marker' points
somewhere.
(erc-send-current-line): Set `buffer-undo-list' to nil because it should
only record editing changes in the prompt area, which has just been
cleared.  ERC did this via `erc-display-prompt' prior to 5.6, but it now
leaves the prompt alone by default.
* test/lisp/erc/erc-tests.el (erc-update-undo-list): New test.
(Bug#74518)

(cherry picked from commit e0d2c6f20f01366c41ba33d663a2b319dd9b7ab1)
lisp/erc/erc.el
test/lisp/erc/erc-tests.el