]> git.eshelyaron.com Git - emacs.git/commit
Optionally prevent sending multiline input in ERC
authorF. Jason Park <jp@neverwas.me>
Wed, 27 Apr 2022 09:27:32 +0000 (02:27 -0700)
committerF. Jason Park <jp@neverwas.me>
Thu, 30 Jun 2022 22:19:53 +0000 (15:19 -0700)
commit10237840d03c4ba647fd3045ee500af950a5df6e
tree80c58e07ade459bb1db98c0c051406a2e82b1ca1
parentf46547294d2684d80bb473bd4c85f273ff661a7d
Optionally prevent sending multiline input in ERC

* lisp/erc/erc.el (erc-inhibit-multiline-input): Add option to cap the
number of lines to be sent before admonishing the user.
(erc-ask-about-multiline-input): Add option to ask instead of warning
user when `erc-inhibit-multiline-input' is reached.
(erc--check-prompt-input-for-excess-lines): Add validator to possibly
warn when too many lines are submitted for transmission.

* test/lisp/erc/erc-tests.el
(erc--check-prompt-input-for-excess-lines): Add test.
(Bug#54536)
lisp/erc/erc.el
test/lisp/erc/erc-tests.el