]> git.eshelyaron.com Git - emacs.git/commit
Make erc-fill-wrap depend on scrolltobottom
authorF. Jason Park <jp@neverwas.me>
Mon, 13 Nov 2023 20:07:36 +0000 (12:07 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:02:42 +0000 (14:02 +0100)
commitff37b634021380a8f87c676777151df6c382c82a
tree2e1d52edfd205213ab1a1915a54bb566a81fc9a6
parent22a69c7c07d3391fc3b980f2cb94b23086745fb6
Make erc-fill-wrap depend on scrolltobottom

* lisp/erc/erc-fill.el (erc-fill-mode): Add reference to
`erc-fill-wrap-mode' in doc string.
(erc--fill-wrap-scrolltobottom-exempt-p): New variable to allow tests
involving `fill-wrap' to opt out of having to enable `scrolltobottom'.
(erc-fill--wrap-ensure-dependencies): Warn and enable
`erc-scrolltobottom-mode' if necessary.
(erc-fill-wrap-mode): Mention workaround for automatically enabling
`scrolltobottom'.
* test/lisp/erc/erc-fill-tests.el (erc-fill-tests--wrap-populate):
Exempt tests from `scrolltobottom' dependency.
* test/lisp/erc/resources/erc-scenarios-common.el: Load `erc-fill'
when compiling.
(erc-scenarios-common--print-trace): Exempt tests using `fill-wrap'
from the `scrolltobottom' dependency by making
`erc--fill-wrap-scrolltobottom-exempt-p' non-nil during test runs.
(Bug#60936)

(cherry picked from commit 9668b4f97c2fc6bfff83258861d455a6d02516a8)
lisp/erc/erc-fill.el
test/lisp/erc/erc-fill-tests.el
test/lisp/erc/resources/erc-scenarios-common.el