diff options
author | F. Jason Park <jp@neverwas.me> | 2023-02-19 21:33:36 -0800 |
---|---|---|
committer | F. Jason Park <jp@neverwas.me> | 2023-04-08 14:23:51 -0700 |
commit | 05f6fdb9e7893329baff675bd31fb36ad64c756d (patch) | |
tree | 6228f6feb7b97e20a72231cc49ef5fa642246aa0 /lisp/emacs-lisp/lisp.el | |
parent | e7992d2adbc50ba8a3b0fb18b9afe22a2a539b1d (diff) | |
download | emacs-05f6fdb9e7893329baff675bd31fb36ad64c756d.tar.gz emacs-05f6fdb9e7893329baff675bd31fb36ad64c756d.tar.bz2 emacs-05f6fdb9e7893329baff675bd31fb36ad64c756d.zip |
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.)
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions