diff --git a/etc/ERC-NEWS b/etc/ERC-NEWS index b7b49956d06..9554eaed412 100644 --- a/etc/ERC-NEWS +++ b/etc/ERC-NEWS @@ -49,6 +49,8 @@ speaker names, with the latter option also gaining 'erc-notice-face'. This was done to provide a more frequent and practical indication of channel activity in keeping with the module's original design. +** Command 'erc-track-clear' clears the mode-line activity indicator. + ** An arguably less distracting 'erc-nicks-track-faces' variant. Setting this option to t tells the 'track' module to have the mode-line indicator stick with the most recent speaker's face, even when they're diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index 97fb7e726bd..fac0269f9e8 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el @@ -900,6 +900,12 @@ Use `erc-make-mode-line-buffer-name' to create buttons." (when (called-interactively-p 'interactive) (erc-modified-channels-display))) +(defun erc-track-clear () + "Clear ERC's mode-line activity indicator." + (interactive) + (setq erc-modified-channels-alist nil) + (erc-modified-channels-display)) + (defun erc-track-find-face (faces) "Return the face to use in the mode line." (declare (obsolete erc-track-select-mode-line-face "28.1"))