diff options
| author | F. Jason Park | 2023-09-03 16:05:59 -0700 |
|---|---|---|
| committer | F. Jason Park | 2023-11-12 20:37:48 -0800 |
| commit | 5baa0f61f8dc65ec45e3fe49c8179e4ae6830a84 (patch) | |
| tree | 4817daa6123fa427273cb6a2cbecda73fd28e751 /java/debug.sh | |
| parent | 29029529cb21960fc48e35ffbd24cbccaeb499a7 (diff) | |
| download | emacs-5baa0f61f8dc65ec45e3fe49c8179e4ae6830a84.tar.gz emacs-5baa0f61f8dc65ec45e3fe49c8179e4ae6830a84.zip | |
Offer alternate pool-creation strategies in erc-nicks
* lisp/erc/erc-nicks.el (erc-nicks-bg-color): Expand doc string.
(erc-nicks-colors): Add new choices `font-lock' and `ansi-color'.
(erc-nicks--adjust-contrast): Add assertion to prevent dependency bug
from resurfacing when hacking on module activation code.
(erc-nicks--create-pool-function): New function-valued variable to
specify a pool creation strategy. Note in doc string that this could
form the basis for a possible user option should the need arise.
(erc-nicks--create-coerced-pool): New function for filtering
user-provided `erc-nicks-color' values.
(erc-nicks--create-pool, erc-nicks--create-culled-pool): Rename former
to latter.
(erc-nicks--init-pool): Call `erc-nicks--create-pool-function' to
actually create pool. Account for new `erc-nicks-colors' values.
(erc-nicks-enable, erc-nicks-mode): Set `erc-nicks--fg-rgb' before
`erc-nicks--init-pool' to prevent type error in filters that depend on
that variable being initialized. This is a bug fix.
(erc-nicks-refresh): Provide helpful user error instead of letting
`arith-error' propagate due to an empty pool.
(erc-nicks--colors-from-faces): New helper function.
* test/lisp/erc/erc-nicks-tests.el (erc-nicks--create-pool,
erc-nicks--create-culled-pool): Rename test from former to latter and
update function invocations to reflect that.
(erc-nicks--create-coerced-pool): New test. (Bug#63569)
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions