aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorAmin Bandali2021-09-11 23:03:57 -0400
committerAmin Bandali2021-09-11 23:03:57 -0400
commite4b7fa05001ef48db28a77e1343ffb196de39609 (patch)
treed670aaa967ffd29ab92085f26d6c3da1e40db05e /lisp/erc
parent108dbed4c0d874f71bc40f63d39d8777ce192303 (diff)
parentd7f4cc0974645cc6a295740afe85c6e21d956119 (diff)
downloademacs-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.el34
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.
265Each element looks like (BUFFER COUNT FACE) where BUFFER is a buffer 265Each element is a list of the form (BUFFER COUNT . FACE) where
266object of the channel the entry corresponds to, COUNT is a number 266BUFFER is a buffer object of the channel the entry corresponds
267indicating how often activity was noticed, and FACE is the face to use 267to, COUNT is a number indicating how often activity was noticed,
268when displaying the buffer's name. See `erc-track-faces-priority-list', 268and FACE is a face (or a list of faces, combined as usual) to use
269and `erc-track-showcount'. 269when displaying the buffer's name in the mode line.
270 270
271Entries in this list should only happen for buffers where activity occurred 271Entries in this list are only added/updated for buffers that were
272while the buffer was not visible.") 272not visible when activity occurred in them, and are removed for
273each buffer as soon as it becomes visible again (or if the server
274is disconnected, provided `erc-track-remove-disconnected-buffers'
275is true).
276
277For how the face is chosen for a buffer, see
278`erc-track-find-face' and `erc-track-priority-faces-only'. For
279how 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.
626If FACES are provided, color STRING with them." 634STRING is the string in the button. It is possibly suffixed with
635the number of unread messages, according to variables
636`erc-track-showcount' and `erc-track-showcount-string'.
637
638If `erc-track-use-faces' is true and FACES are provided, format
639STRING with them. When the mouse hovers above the button, STRING
640is 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