aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorF. Jason Park2021-10-07 14:26:36 +0200
committerF. Jason Park2023-11-24 13:38:52 -0800
commit2ed9c9f1b3230bb99b60646fe1cf46664453f693 (patch)
tree00fbb23f7283648d87e598bd6d98cec51f3629ab /java
parent7cbe6ae7124cade32bce1268212e2279dcb6df20 (diff)
downloademacs-2ed9c9f1b3230bb99b60646fe1cf46664453f693.tar.gz
emacs-2ed9c9f1b3230bb99b60646fe1cf46664453f693.zip
Optionally allow substitution patterns in erc-prompt
* etc/ERC-NEWS: Add entry for `erc-prompt-format'. * lisp/erc/erc-compat.el (erc-compat--defer-format-spec-in-buffer): New macro to wrap `format-spec' specification values in functions that run in the current buffer and fall back to the empty string. * lisp/erc/erc.el (erc-prompt): Add predefined Custom choice for function type in `erc-prompt-format'. (erc--prompt-format-face-example): New "pre-propertized" value for option `erc-prompt-format'. (erc-prompt-format): New companion option for `erc-prompt' choice `erc-prompt-format'. New function of the same name to perform format substitutions and serve as a Custom choice value for `erc-prompt'. Based on work and ideas originally proposed by Stefan Kangas. (erc--away-indicator, erc-away-status-indicator, erc--format-away-indicator): New formatting function and helper variables for displaying short away status. (erc--user-modes-indicator): New variable. (erc--format-user-modes): New function. (erc--format-channel-status-prefix): New function. (erc--format-modes): New function. * test/lisp/erc/erc-scenarios-prompt-format.el: New file. (Bug#51082) Co-authored-by: Stefan Kangas <stefankangas@gmail.com>
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions