1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 23:10:28 -08:00
emacs/lisp/erc
F. Jason Park 8e06f224a9 Add erc-track integration to erc-nicks
* lisp/erc/erc-button.el (erc-button--nick): Add `face-cache' slot.
(erc-button-add-nickname-buttons): Pass `erc-button--nick' object, if
created', as the boolean NICK-P parameter when calling
`erc-button-add-button'.  Keeping the latter function ignorant of
`erc-button--nick' is of course preferable, but some coordination is
now required to convey and use the "face cache".  We can introduce an
abstraction, like a local variable, if this becomes an issue.
(erc-button-add-button): Use `erc--merge-prop' instead of
`erc-button-add-face' to apply button faces.  Hold off on deprecating
the latter because it provides unique functionality for nesting faces.
Also, consult NICK-P if it's an `erc-button--nick' object for the
various overriding faces it knows about.
* lisp/erc/erc-nicks.el (erc-nicks-track-faces): New option.
(erc-nicks--get-face): Make generated face `:inherit' from
`erc-nicks-backing-face'.
(erc-nicks--highlight): Just return the generated face instead of
combining it with `erc-nicks-backing-face'.
(erc-nicks--highlight-button): Set the `face-cache' slot of the
`erc-button--nick' object when `track' is loaded and initialized.
(erc-nicks-mode, erc-nicks-enable, erc-nicks-disable): Add and remove
`track' integration.
(erc-nicks--reject-uninterned-faces): New function to remove faces
created by `nicks' from buttonized speakers and mentions.  Conform
to `erc-track--face-reject-function' interface.
(erc-nicks--ourps, erc-nicks--check-normals): New function and helper
for `erc-track--alt-normals-function' interface.
(erc-nicks--setup-track-integration): New function.
(erc-nicks--remember-face-for-track): New function to cache
nick faces owned by this module.
* lisp/erc/erc.el (erc--merge-prop): Add new optional parameter
`cache-fn', and when non-nil, call it, assigning the returned value to
that of the merged property.
* test/lisp/erc/erc-nicks-tests.el (erc-nicks-list-faces): Skip
the "Inherit: " button.  (Bug#67767)
2023-12-17 20:17:55 -08:00
..
ChangeLog.1
ChangeLog.2
erc-autoaway.el
erc-backend.el Rename erc-channel-users to erc-channel-members 2023-12-17 20:17:55 -08:00
erc-button.el Add erc-track integration to erc-nicks 2023-12-17 20:17:55 -08:00
erc-capab.el
erc-common.el Rename erc-channel-users to erc-channel-members 2023-12-17 20:17:55 -08:00
erc-compat.el Optionally allow substitution patterns in erc-prompt 2023-11-24 13:38:52 -08:00
erc-dcc.el Use templates for formatting chat messages in ERC 2023-12-17 20:17:55 -08:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el Demote erc-fill-line-spacing to a normal variable 2023-12-17 20:17:55 -08:00
erc-goodies.el Double hyphenate internal ERC 5.6 text props 2023-12-17 20:17:54 -08:00
erc-ibuffer.el Fix wrong "User" column count in erc-ibuffer 2023-10-02 17:23:29 -07:00
erc-identd.el
erc-imenu.el
erc-join.el
erc-lang.el
erc-list.el
erc-log.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-match.el Revive erc-command-indicator as new module 2023-11-12 20:37:49 -08:00
erc-menu.el
erc-netsplit.el Define ERC message-formatting templates with defvar 2023-12-17 20:17:54 -08:00
erc-networks.el Sequester some special-variable declarations in ERC 2023-12-17 20:17:54 -08:00
erc-nicks.el Add erc-track integration to erc-nicks 2023-12-17 20:17:55 -08:00
erc-notify.el Define ERC message-formatting templates with defvar 2023-12-17 20:17:54 -08:00
erc-page.el Define ERC message-formatting templates with defvar 2023-12-17 20:17:54 -08:00
erc-pcomplete.el
erc-replace.el
erc-ring.el
erc-sasl.el Define ERC message-formatting templates with defvar 2023-12-17 20:17:54 -08:00
erc-services.el Merge from origin/emacs-29 2023-12-09 07:25:21 -05:00
erc-sound.el Define ERC message-formatting templates with defvar 2023-12-17 20:17:54 -08:00
erc-speedbar.el Make erc-get-user-mode-prefix more flexible 2023-12-17 20:17:55 -08:00
erc-spelling.el
erc-stamp.el Use templates for formatting chat messages in ERC 2023-12-17 20:17:55 -08:00
erc-status-sidebar.el ; Fix typos 2023-12-10 13:22:04 +01:00
erc-track.el Cache shortened channel names in erc-track 2023-12-17 20:17:55 -08:00
erc-truncate.el Manage some text props for ERC insertion-hook members 2023-10-13 07:47:01 -07:00
erc-xdcc.el
erc.el Add erc-track integration to erc-nicks 2023-12-17 20:17:55 -08:00