diff options
author | F. Jason Park <jp@neverwas.me> | 2024-05-22 22:59:54 -0700 |
---|---|---|
committer | F. Jason Park <jp@neverwas.me> | 2024-05-27 16:46:40 -0700 |
commit | 6888bbbe832e14c3aaaa2c9750ed27e577e0983d (patch) | |
tree | 890d80927ef23f1b7d330ca6aa9a1ebd265fe963 /lisp/emacs-lisp/inline.el | |
parent | 5f84213c9802181b4d800615915e3c8dded7b94f (diff) | |
download | emacs-6888bbbe832e14c3aaaa2c9750ed27e577e0983d.tar.gz emacs-6888bbbe832e14c3aaaa2c9750ed27e577e0983d.tar.bz2 emacs-6888bbbe832e14c3aaaa2c9750ed27e577e0983d.zip |
Add ERC module querypoll as monitor placeholder
* doc/misc/erc.texi: Add module `querypoll' to list of built-in
modules'.
* etc/ERC-NEWS: Mention new module `querypoll', and explain new
default behavior for deriving query membership from that of channels.
* lisp/erc/erc-goodies.el (erc--querypoll-ring)
(erc--querypoll-timer): New variables.
(erc-querypoll-exclude-regexp): New option.
(erc-querypoll-mode, erc-querypoll-enable, erc-querypoll-disable): New
module for polling with "WHO" requests for the presence of otherwise
"untracked" query targets.
(erc-querypoll-period-params): New variable.
(erc--querypoll-compute-period)
(erc--querypoll-target-in-chan-p)
(erc--querypoll-get-length)
(erc--querypoll-get-next)
(erc--querypoll-subscribe)
(erc--querypoll-on-352)
(erc--querypoll-send): New functions.
* lisp/erc/erc-speedbar.el (erc-speedbar-buttons): Dispatch queries as
if they were channels when `erc--queries-current-p' returns non-nil.
That is, show head counts alongside query targets as users come and
go.
(erc-speedbar-insert-target): Defer to `erc--queries-current-p' to
know whether to show a query in the style of a channel. This affects
both the plain speedbar integration as well as the `nickbar' module
added for bug#63595. Also, use question marks rather than the empty
string for query bullets, so that query and channel items are aligned
vertically.
* lisp/erc/erc.el (erc--queries-current-p): New function.
* test/lisp/erc/erc-goodies-tests.el
(erc--querypoll-compute-period)
(erc--querypoll-target-in-chan-p)
(erc--querypoll-get-length)
(erc--querypoll-get-next): New tests. (Bug#70928)
Diffstat (limited to 'lisp/emacs-lisp/inline.el')
0 files changed, 0 insertions, 0 deletions