Function: erc--format-away-indicator
erc--format-away-indicator is a byte-compiled function defined in
erc.el.gz.
Signature
(erc--format-away-indicator)
Documentation
Return char with display property of erc--away-indicator.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
(defun erc--format-away-indicator ()
"Return char with `display' property of `erc--away-indicator'."
(and-let* ((indicator (erc-with-server-buffer
(or erc--away-indicator
(setq erc--away-indicator (list "")))))
(newcar (if (erc-away-time) erc-away-status-indicator "")))
;; Inform other buffers of the change when necessary.
(let ((dispp (not erc--inhibit-prompt-display-property-p)))
(unless (eq newcar (car indicator))
(erc--refresh-prompt-continue (and dispp 'hooks-only-p))
(setcar indicator newcar))
(if dispp
(propertize "(away?)" 'display indicator)
newcar))))