1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00
emacs/test/lisp/erc
F. Jason Park 6888bbbe83 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)
2024-05-27 16:46:40 -07:00
..
resources Reuse old query buffers for reassumed nicks in ERC 2024-05-27 16:39:18 -07:00
erc-button-tests.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-dcc-tests.el ; Simplify (with-current-buffer (get-buffer ...) ...) 2024-03-14 12:40:26 +02:00
erc-fill-tests.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-goodies-tests.el Add ERC module querypoll as monitor placeholder 2024-05-27 16:46:40 -07:00
erc-join-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-match-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-networks-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-nicks-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-sasl-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-scenarios-auth-source.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-association-nick.el ; Set explicit hook depth for erc-once-with-server-event 2024-05-02 19:21:48 -07:00
erc-scenarios-base-association-query.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-association-samenet.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-association.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-attach.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-auto-recon.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-buffer-display.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-chan-modes.el Actually derive channel membership from PREFIX in ERC 2024-01-24 20:58:32 -08:00
erc-scenarios-base-compat-rename-bouncer.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-kill-on-part.el Don't kill server buffer with erc-kill-buffer-on-part 2024-05-18 15:48:05 -07:00
erc-scenarios-base-local-module-modes.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-local-modules.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-misc-regressions.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-netid-bouncer-id.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-netid-bouncer-recon-base.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-netid-bouncer-recon-both.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-netid-bouncer-recon-id.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-netid-bouncer.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-netid-samenet.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-query-participants.el Tether query rolls to channel membership in ERC 2024-05-27 16:39:18 -07:00
erc-scenarios-base-reconnect.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-renick.el Retain client's own user in erc-server-users 2024-05-27 16:39:18 -07:00
erc-scenarios-base-reuse-buffers.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-base-send-message.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-split-line.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-statusmsg.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-base-unstable.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-upstream-recon-soju.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-base-upstream-recon-znc.el Reassociate erc-networks--id for orphaned queries 2024-02-02 17:08:21 -08:00
erc-scenarios-display-message.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-ignore.el Add format-catalog entry for unknown chan mode in ERC 2024-05-08 17:11:26 -07:00
erc-scenarios-internal.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-join-auth-source.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-join-display-context.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-join-netid-newcmd-id.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-join-netid-newcmd.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-join-netid-recon-id.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-join-netid-recon.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
erc-scenarios-keep-place-indicator.el ; Fix typos 2024-01-28 17:11:51 +01:00
erc-scenarios-log.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-match.el Don't nest date stamp insertions in erc-stamp 2024-04-19 13:54:52 -07:00
erc-scenarios-misc-commands.el Make erc-cmd-AMSG session local; add /GMSG, /AME and /GME 2024-02-23 18:45:44 -08:00
erc-scenarios-misc.el Add format-catalog entry for unknown chan mode in ERC 2024-05-08 17:11:26 -07:00
erc-scenarios-prompt-format.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-sasl.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
erc-scenarios-scrolltobottom-relaxed.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-scrolltobottom.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
erc-scenarios-services-misc.el ; Simplify (with-current-buffer (get-buffer ...) ...) 2024-03-14 12:40:26 +02:00
erc-scenarios-stamp.el Add erc--skip message property 2024-04-19 13:54:52 -07:00
erc-scenarios-status-sidebar.el Delete original speedbar frame in erc-nickbar-mode 2024-05-27 16:39:18 -07:00
erc-services-tests.el Return nil from more ERC response handlers 2024-05-27 16:39:18 -07:00
erc-stamp-tests.el Reconcile erc-stamp--date-stamps when merging buffers 2024-05-18 15:48:05 -07:00
erc-tests.el Mention if an ERC module is local in its doc string 2024-05-27 16:39:18 -07:00
erc-track-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00