Function: erc-track--shortened-names-get
erc-track--shortened-names-get is a byte-compiled function defined in
erc-track.el.gz.
Signature
(erc-track--shortened-names-get CHANNEL-NAMES)
Documentation
Cache CHANNEL-NAMES with various contextual parameters.
For now, omit relevant options like erc-track-shorten-start and
friends, even though they do affect the outcome, because they
likely change too infrequently to matter over sub-second
intervals and are unlikely to be let-bound or set locally.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-track.el.gz
(defun erc-track--shortened-names-get (channel-names)
"Cache CHANNEL-NAMES with various contextual parameters.
For now, omit relevant options like `erc-track-shorten-start' and
friends, even though they do affect the outcome, because they
likely change too infrequently to matter over sub-second
intervals and are unlikely to be let-bound or set locally."
(when-let* ((hash (setq erc-track--shortened-names-current-hash
(sxhash-equal (list channel-names
(buffer-list)
erc-track-shorten-function))))
(erc-track--shortened-names)
((= hash (car erc-track--shortened-names))))
(cdr erc-track--shortened-names)))