Variable: erc--pre-send-split-functions
erc--pre-send-split-functions is a variable defined in erc.el.gz.
Value
(erc--discard-trailing-multiline-nulls)
Documentation
Special hook for modifying individual lines in multiline prompt input.
The functions are called with one argument, an erc--input-split
struct, which they can optionally modify.
The struct has five slots:
string: the input string delivered by erc-pre-send-functions
insertp: whether to insert the lines into the buffer
sendp: whether the lines should be sent to the IRC server
lines: a list of lines to be sent, each one a string
cmdp: whether to interpret input as a command, like /ignore
The string field is effectively read-only. When cmdp is
non-nil, all but the first line will be discarded.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; This is being auditioned for possible exporting (as a custom hook
;; option). Likewise for (public versions of) `erc--input-split' and
;; `erc--discard-trailing-multiline-nulls'. If unneeded, we'll just
;; run the latter on the input after `erc-pre-send-functions', and
;; remove this hook and the struct completely. IOW, if you need this,
;; please say so.
(defvar erc--pre-send-split-functions '(erc--discard-trailing-multiline-nulls)
"Special hook for modifying individual lines in multiline prompt input.
The functions are called with one argument, an `erc--input-split'
struct, which they can optionally modify.
The struct has five slots:
`string': the input string delivered by `erc-pre-send-functions'
`insertp': whether to insert the lines into the buffer
`sendp': whether the lines should be sent to the IRC server
`lines': a list of lines to be sent, each one a `string'
`cmdp': whether to interpret input as a command, like /ignore
The `string' field is effectively read-only. When `cmdp' is
non-nil, all but the first line will be discarded.")