mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Customize displaying of ERC buffers on reconnect
* lisp/erc/erc-backend.el (erc--server-last-reconnect-count): Add variable to record last reconnect tally. * lisp/erc/erc.el (erc-reconnect-display): Add new option to specify channel-buffer display behavior on reconnect. (erc-setup-buffer): Use option `erc-reconnect-display' if warranted. (erc-cmd-JOIN): Forget last reconnect count when issuing a manual /JOIN command. (erc-connection-established): Record reconnect count in internal var before resetting. (Bug#51753)
This commit is contained in:
parent
a63ed6f78a
commit
c5b78a3379
2 changed files with 27 additions and 2 deletions
|
|
@ -200,6 +200,9 @@ active, use the `erc-server-process-alive' function instead.")
|
|||
(defvar-local erc-server-reconnect-count 0
|
||||
"Number of times we have failed to reconnect to the current server.")
|
||||
|
||||
(defvar-local erc--server-last-reconnect-count 0
|
||||
"Snapshot of reconnect count when the connection was established.")
|
||||
|
||||
(defvar-local erc-server-quitting nil
|
||||
"Non-nil if the user requests a quit.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue