]> git.eshelyaron.com Git - emacs.git/commit
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)
committerEshel Yaron <me@eshelyaron.com>
Thu, 25 Jan 2024 18:05:06 +0000 (19:05 +0100)
commit88c0ca0555aa84ed959e5f486c26907bc45cad2d
tree1c298043be2f820d60e39d802a49e1619147c8d8
parent55bb4ec461bba30f244b45bbb64295e8fde499b0
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)

(cherry picked from commit d6be068ffe8c151575ea784ce508711b41cec7c5)
etc/ERC-NEWS
lisp/erc/erc-common.el
lisp/erc/erc-goodies.el
lisp/erc/erc.el