Add replacement-text field to erc-input struct
authorF. Jason Park <jp@neverwas.me>
Mon, 1 Jan 2024 14:37:25 +0000 (06:37 -0800)
committerF. Jason Park <jp@neverwas.me>
Thu, 25 Jan 2024 04:58:32 +0000 (20:58 -0800)
commitd6be068ffe8c151575ea784ce508711b41cec7c5
treef3062a14220b56e48be3f0852aa6e78f3e7281d5
parentaae131b8dd9ab3c3ceb23079796005873e107bee
Add replacement-text field to erc-input struct

* etc/ERC-NEWS: Promote `refoldp' slot from simulated to real.
Mention new `substxt' slot of `erc-input' struct.
* lisp/erc/erc-common.el (erc-input): Add `substxt' and `refoldp'
slots.
(erc--input-split): Move `refoldp' to "superclass".
* lisp/erc/erc-goodies.el (erc--command-indicator-permit-insertion):
Use `substxt' field instead of overloading `insertp'.
(erc--command-indicator-display): Accept extra lines for
compatibility.
* lisp/erc/erc.el (erc-pre-send-functions): Revise doc.
(erc--input-ensure-hook-context, erc-input-refoldp): Remove unused
functions, originally meant to be new in ERC 5.6.
(erc--run-send-hooks): Copy data from additional fields of `erc-input'
object to `erc--input-split' workspace object.
(erc--send-input-lines): Handle `substxt' field of `erc-input' object
when it's non-nil.  (Bug#68265)
etc/ERC-NEWS
lisp/erc/erc-common.el
lisp/erc/erc-goodies.el
lisp/erc/erc.el