]> git.eshelyaron.com Git - emacs.git/commit
Optionally add spacing between ERC messages
authorF. Jason Park <jp@neverwas.me>
Sun, 7 May 2023 14:28:56 +0000 (07:28 -0700)
committerF. Jason Park <jp@neverwas.me>
Sat, 13 May 2023 14:05:22 +0000 (07:05 -0700)
commit75a412d78b6f4b4b68a7c649047cd28320110c09
tree6785ad5b9d4390ed9d43c5abb815dd3aad2c69ef
parent38706abdf7f6d919640e8e14f0e0dc6cf34aa555
Optionally add spacing between ERC messages

* etc/ERC-NEWS: Mention option `erc-fill-line-spacing'.
* lisp/erc/erc-fill.el (erc-fill-line-spacing,
erc-fill-spaced-commands): Add options to allow for extra spacing
between messages.
(erc-fill--function): Internal var allowing modules to override user
option `erc-fill-function'.
(erc-fill): Add extra line-spacing on certain types of messages.
Prefer `erc-fill--function', when set, over `erc-fill-function'.
(erc-fill--make-module-dependency-msg,
erc-fill--wrap-ensure-dependencies): Rename former to latter and make
more useful.
(erc-fill-wrap-mode, erc-fill-wrap-enable, erc-fill-wrap-disable):
Refactor.
(erc-fill--wrap-fix): Remove unused function.
(erc-fill-wrap-nudge): Remove reference to nonexistent function in doc
string.
* test/lisp/erc/erc-fill-tests.el: (erc-fill-tests--graphic-dir): New
variable.
(erc-fill-tests--compare): Look in `erc-fill-tests--graphic-dir' for
graphical snapshots ignored by Git.
(erc-fill-line-spacing): New test.
* test/lisp/erc/resources/fill/snapshots/spacing-01-mono.eld: New
file.  (Bug#60936)
etc/ERC-NEWS
lisp/erc/erc-fill.el
test/lisp/erc/erc-fill-tests.el
test/lisp/erc/resources/fill/snapshots/spacing-01-mono.eld [new file with mode: 0644]