1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/erc
F. Jason Park e7f2f6cd92 Improve auto-reconnect visibility in ERC
* lisp/erc/erc-backend.el (erc--server-reconnect-timer): New variable.
(erc-server-reconnect-function): New user option.
(erc-process-sentinel-2): Display time remaining until next
reconnection attempt.  Also remove condition case and move bulk of
else condition logic to `erc-schedule-reconnect'.  More importantly,
no longer set `erc--server-reconnecting here').
(erc-server-connect): Initialize `erc--server-reconnect-timer' to nil.
(erc-server-reconnect): Set `erc-server--reconnecting' here.
(erc--mode-line-process-reconnecting): New constant to store value for
"reconnect" state of `mode-line-process'.
(erc--cancel-auto-reconnect-timer): New function to cancel
auto-reconnect timer and print message.
(erc-schedule-reconnect): New function for scheduling another
reconnect attempt.

* lisp/erc/erc.el (erc-open): Only update mode line for target
buffers. For server buffers, let `erc-login' and/or process sentinels
take care of it.
(erc--cmd-reconnect, erc-cmd-RECONNECT): Rename latter to former, a
new function, but repurpose existing to recognize newly allowed
additional arguments and act accordingly.  In new internal function,
cancel an existing auto-reconnect timer, if any, before proceeding.
Defer to `erc-server-reconnect' to set `erc--server-reconnecting'.
Fix `with-suppressed-warnings' form.
(erc-update-mode-line-buffer): Show "reconnecting in Ns" for
`mode-line-process' when awaiting an automatic reconnect attempt.
(erc-message-english-reconnecting,
erc-message-english-reconnect-canceled): Add new message functions to
English catalog.

* lisp/erc/erc-pcomplete.el (pcomplete/erc-mode/RECONNECT): Perform
completion for newly subcommand-aware `erc-cmd-RECONNECT'.

* lisp/erc/erc-scenarios-base-reconnect
(erc-scenarios-base-cancel-reconnect): Add new test case for canceling
reconnect timers.  (Bug#58840.)
2022-11-16 21:34:36 -08:00
..
ChangeLog.1 ; Fix typos 2022-11-11 15:52:37 +01:00
ChangeLog.2
erc-autoaway.el
erc-backend.el Improve auto-reconnect visibility in ERC 2022-11-16 21:34:36 -08:00
erc-button.el Remove redundant let-bindings of inhibit-point-motion-hooks 2022-10-07 12:16:47 -04:00
erc-capab.el ; Fix several symbol name typos 2022-10-26 23:04:23 +02:00
erc-common.el Move ERC's core dependencies to separate file 2022-11-04 19:32:23 -07:00
erc-compat.el Support auth-source-pass in ERC 2022-11-16 21:34:36 -08:00
erc-dcc.el Offer completions for GET subcommand flags in erc-dcc 2022-11-04 19:32:23 -07:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el
erc-goodies.el Move ERC's core dependencies to separate file 2022-11-04 19:32:23 -07:00
erc-ibuffer.el
erc-identd.el
erc-imenu.el
erc-join.el
erc-lang.el
erc-list.el
erc-log.el Revert "Decrease use of the word "Emacsen" in docs" 2022-10-01 22:34:47 +02:00
erc-match.el Offer to regexp-quote new items in erc-match commands 2022-09-19 17:54:46 -07:00
erc-menu.el
erc-netsplit.el
erc-networks.el Move ERC's core dependencies to separate file 2022-11-04 19:32:23 -07:00
erc-notify.el
erc-page.el
erc-pcomplete.el Improve auto-reconnect visibility in ERC 2022-11-16 21:34:36 -08:00
erc-replace.el
erc-ring.el
erc-services.el
erc-sound.el
erc-speedbar.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
erc-spelling.el
erc-stamp.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
erc-status-sidebar.el
erc-track.el
erc-truncate.el
erc-xdcc.el
erc.el Improve auto-reconnect visibility in ERC 2022-11-16 21:34:36 -08:00