]> git.eshelyaron.com Git - emacs.git/commit
Preserve ERC prompt and its bounding markers
authorF. Jason Park <jp@neverwas.me>
Mon, 20 Feb 2023 05:33:36 +0000 (21:33 -0800)
committerF. Jason Park <jp@neverwas.me>
Sat, 8 Apr 2023 21:23:51 +0000 (14:23 -0700)
commit05f6fdb9e7893329baff675bd31fb36ad64c756d
tree6228f6feb7b97e20a72231cc49ef5fa642246aa0
parente7992d2adbc50ba8a3b0fb18b9afe22a2a539b1d
Preserve ERC prompt and its bounding markers

* lisp/erc/erc.el (erc--assert-input-bounds): Add possibly temporary
helper function to sync `process-mark' to `erc-insert-marker' in
server buffer.
(erc-display-line-1): Expect `erc-insert-marker' to always be
initialized.  Assert some essential invariants regarding insert
markers.
(erc-send-current-line): Delete typed input but not the prompt.
(erc-display-msg): Rework slightly to respect existing markers.
* test/lisp/erc/erc-dcc-tests.el
(erc-dcc-tests--dcc-handle-ctcp-send): Set insert marker.
* test/lisp/erc/erc-networks-tests.el
(erc-networks--rename-server-buffer--existing-live): Initialize
markers to appease `erc--assert-input-bounds'.
* test/lisp/erc/erc-tests.el (erc-ring-previous-command): Fix sloppy
mock.  (Bug#60936.)
lisp/erc/erc.el
test/lisp/erc/erc-dcc-tests.el
test/lisp/erc/erc-networks-tests.el
test/lisp/erc/erc-tests.el