Function: erc-track-shorten-names

erc-track-shorten-names is a byte-compiled function defined in erc-track.el.gz.

Signature

(erc-track-shorten-names CHANNEL-NAMES)

Documentation

Call erc-unique-channel-names with the correct parameters.

This function is a good value for erc-track-shorten-function. The list of all channels is returned by erc-all-buffer-names. CHANNEL-NAMES is the list of active channel names. Only channel names longer than erc-track-shorten-cutoff are actually shortened, and they are only shortened to a minimum of erc-track-shorten-start characters.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-track.el.gz
(defun erc-track-shorten-names (channel-names)
  "Call `erc-unique-channel-names' with the correct parameters.
This function is a good value for `erc-track-shorten-function'.
The list of all channels is returned by `erc-all-buffer-names'.
CHANNEL-NAMES is the list of active channel names.
Only channel names longer than `erc-track-shorten-cutoff' are
actually shortened, and they are only shortened to a minimum
of `erc-track-shorten-start' characters."
  (erc-unique-channel-names
   (erc-all-buffer-names)
   channel-names
   (lambda (s)
     (> (length s) erc-track-shorten-cutoff))
   erc-track-shorten-start))