diff options
| author | F. Jason Park | 2023-06-30 23:42:01 -0700 |
|---|---|---|
| committer | F. Jason Park | 2023-07-13 18:45:31 -0700 |
| commit | 4f3d036957a754f2e870fc54c7e3f539d215e57e (patch) | |
| tree | 42c18e2d3f2dfc117fbb874acbe16b510f82a192 /java | |
| parent | 4d6ed774fef6c6630738761356ea274b5a18fb62 (diff) | |
| download | emacs-4f3d036957a754f2e870fc54c7e3f539d215e57e.tar.gz emacs-4f3d036957a754f2e870fc54c7e3f539d215e57e.zip | |
Simplify erc-button-add-nickname-buttons
* lisp/erc/erc-button.el (erc-button--nick): Remove `face' slot, which
was set to `erc-button-face' by default. It's ignored when the button
is a nick and thus useless and misleading.
(erc-button-add-nickname-buttons): Rework and reflow for readability.
Don't bind or set `erc-button' face because it's ignored when dealing
with nicks. Don't return the value of face options when calling a
`form' function because they can be nil in practice even though their
Custom type specs do not say so.
* lisp/erc/erc-common.el (erc--with-dependent-type-match): Add helper
macro for Custom :type defs that incur warnings from `setopt' due to
some missing dependency. This occurs when specifying a :type of
`face' instead of `symbol' and the option's default value includes
faces from another library that hasn't been loaded.
* lisp/erc/erc.el (erc--get-speaker-bounds): New helper function to
retrieve bounds of a speaker label when present.
* test/lisp/erc/erc-tests.el (erc--with-dependent-type-match): Add
test. (Bug#64301)
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions