]> git.eshelyaron.com Git - emacs.git/commit
Preserve user markers when inserting ERC date stamps
authorF. Jason Park <jp@neverwas.me>
Sat, 4 Nov 2023 18:08:22 +0000 (11:08 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 4 Nov 2023 22:36:24 +0000 (15:36 -0700)
commit781f950edab0509f12e3ec4880690ef6541841ee
tree84354df3801c823ec03520c9fec35eba337c2b00
parentf7c7f7ac20defe3ee8a32659a6799b20ddd58aeb
Preserve user markers when inserting ERC date stamps

* lisp/erc/erc-stamp.el
(erc-stamp--insert-date-stamp-as-phony-message): Ensure existing
user markers aren't displaced by date-stamp insertion.
* lisp/erc/erc.el (erc--insert-line-function): New function-valued
variable for overriding `insert'.
(erc-insert-line): Call `erc--insert-line-function', when non-nil, to
insert line specially.
* test/lisp/erc/erc-scenarios-stamp.el
(erc-scenarios-stamp--on-insert-modify): New assertion helper
function.
(erc-scenarios-stamp--date-mode/left-and-right): New test.
(Bug#60936)
lisp/erc/erc-stamp.el
lisp/erc/erc.el
test/lisp/erc/erc-scenarios-stamp.el