From 868b042845211ced41cf751ac842e7d0b82da188 Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Wed, 13 Jan 2021 17:39:54 +0100 Subject: [PATCH 1/4] ERC: Track: Fix modified channels alist's documentation about its structure * lisp/erc/erc-track.el (erc-modified-channels-alist): Fix the docstring, which reports a proper list structure whereas it is a dotted list, where the last cdr is sometimes a proper list, making it sometimes a proper list. --- lisp/erc/erc-track.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index 56f66563ad..e53f7fb22d 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el @@ -280,14 +280,17 @@ nil - don't add to mode line." (defvar erc-modified-channels-alist nil "An ALIST used for tracking channel modification activity. -Each element looks like (BUFFER COUNT FACE) where BUFFER is a buffer -object of the channel the entry corresponds to, COUNT is a number -indicating how often activity was noticed, and FACE is the face to use -when displaying the buffer's name. See `erc-track-faces-priority-list', -and `erc-track-showcount'. +Each element is a list with form (BUFFER COUNT . FACE) where +BUFFER is a buffer object of the channel the entry corresponds +to, COUNT is a number indicating how often activity was noticed, +and FACE is a face (or a list of faces) to use when displaying the +buffer's name. Entries in this list should only happen for buffers where activity occurred -while the buffer was not visible.") +while the buffer was not visible. + +See also `erc-track-faces-priority-list', +`erc-track-faces-normal-list' and `erc-track-showcount'.") (defcustom erc-track-showcount nil "If non-nil, count of unseen messages will be shown for each channel." -- 2.30.0