diff options
| author | Amin Bandali | 2021-09-11 23:03:57 -0400 |
|---|---|---|
| committer | Amin Bandali | 2021-09-11 23:03:57 -0400 |
| commit | e4b7fa05001ef48db28a77e1343ffb196de39609 (patch) | |
| tree | d670aaa967ffd29ab92085f26d6c3da1e40db05e /lisp/erc | |
| parent | 108dbed4c0d874f71bc40f63d39d8777ce192303 (diff) | |
| parent | d7f4cc0974645cc6a295740afe85c6e21d956119 (diff) | |
| download | emacs-e4b7fa05001ef48db28a77e1343ffb196de39609.tar.gz emacs-e4b7fa05001ef48db28a77e1343ffb196de39609.zip | |
Merge from origin/emacs-27
d7f4cc0974 ERC: Track: Clarify documentation on tracked buffers and a...
fb1f0dfec9 ERC: Track: Fix documentation of structure of 'erc-modifie...
252a769b11 ; * doc/lispref/files.texi (Changing Files): Fix xref to f...
edc93a5ce6 ; Fix grammar in efaq.texi on Emacs vs XEmacs.
# Conflicts:
# doc/misc/efaq.texi
Diffstat (limited to 'lisp/erc')
| -rw-r--r-- | lisp/erc/erc-track.el | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index 2364d45d6f3..7cdddbfd386 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el | |||
| @@ -262,14 +262,22 @@ nil - don't add to mode line." | |||
| 262 | 262 | ||
| 263 | (defvar erc-modified-channels-alist nil | 263 | (defvar erc-modified-channels-alist nil |
| 264 | "An ALIST used for tracking channel modification activity. | 264 | "An ALIST used for tracking channel modification activity. |
| 265 | Each element looks like (BUFFER COUNT FACE) where BUFFER is a buffer | 265 | Each element is a list of the form (BUFFER COUNT . FACE) where |
| 266 | object of the channel the entry corresponds to, COUNT is a number | 266 | BUFFER is a buffer object of the channel the entry corresponds |
| 267 | indicating how often activity was noticed, and FACE is the face to use | 267 | to, COUNT is a number indicating how often activity was noticed, |
| 268 | when displaying the buffer's name. See `erc-track-faces-priority-list', | 268 | and FACE is a face (or a list of faces, combined as usual) to use |
| 269 | and `erc-track-showcount'. | 269 | when displaying the buffer's name in the mode line. |
| 270 | 270 | ||
| 271 | Entries in this list should only happen for buffers where activity occurred | 271 | Entries in this list are only added/updated for buffers that were |
| 272 | while the buffer was not visible.") | 272 | not visible when activity occurred in them, and are removed for |
| 273 | each buffer as soon as it becomes visible again (or if the server | ||
| 274 | is disconnected, provided `erc-track-remove-disconnected-buffers' | ||
| 275 | is true). | ||
| 276 | |||
| 277 | For how the face is chosen for a buffer, see | ||
| 278 | `erc-track-find-face' and `erc-track-priority-faces-only'. For | ||
| 279 | how buffers are then displayed in the mode line, see | ||
| 280 | `erc-modified-channels-display'.") | ||
| 273 | 281 | ||
| 274 | (defcustom erc-track-showcount nil | 282 | (defcustom erc-track-showcount nil |
| 275 | "If non-nil, count of unseen messages will be shown for each channel." | 283 | "If non-nil, count of unseen messages will be shown for each channel." |
| @@ -622,8 +630,14 @@ ARGS are ignored." | |||
| 622 | "The face to use when mouse is over channel names in the mode line.") | 630 | "The face to use when mouse is over channel names in the mode line.") |
| 623 | 631 | ||
| 624 | (defun erc-make-mode-line-buffer-name (string buffer &optional faces count) | 632 | (defun erc-make-mode-line-buffer-name (string buffer &optional faces count) |
| 625 | "Return STRING as a button that switches to BUFFER when clicked. | 633 | "Returns a button that switches to BUFFER when clicked. |
| 626 | If FACES are provided, color STRING with them." | 634 | STRING is the string in the button. It is possibly suffixed with |
| 635 | the number of unread messages, according to variables | ||
| 636 | `erc-track-showcount' and `erc-track-showcount-string'. | ||
| 637 | |||
| 638 | If `erc-track-use-faces' is true and FACES are provided, format | ||
| 639 | STRING with them. When the mouse hovers above the button, STRING | ||
| 640 | is displayed according to `erc-track-mouse-face'." | ||
| 627 | ;; We define a new sparse keymap every time, because 1. this data | 641 | ;; We define a new sparse keymap every time, because 1. this data |
| 628 | ;; structure is very small, the alternative would require us to | 642 | ;; structure is very small, the alternative would require us to |
| 629 | ;; defvar a keymap, 2. the user is not interested in customizing it | 643 | ;; defvar a keymap, 2. the user is not interested in customizing it |