[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4048: 23.1; erc-server-reconnect-attempts does not work

From: Lars Ingebrigtsen
Subject: bug#4048: 23.1; erc-server-reconnect-attempts does not work
Date: Thu, 04 Feb 2016 18:11:51 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

> Vivek Dasmohapatra <address@hidden> writes:
>> Does this patch make the problem go away? It seems to work here.
>> The problem was that erc-mode was killing all local variables, even when
>> the mode was already erc-mode : The patch makes it preserve the
>> reconnection count in that case, which seems to have the desired effect
>> without adversely affecting anything else.
>> [ Stomping on the route didn't work for me as the existing connection was
>>   grandfathered in by the kernel: Installing a local ircd and shutting it
>>   down behind the client's back worked nicely though. ]
> IThis patch no longer applies:
> diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
> --- a/lisp/erc/erc.el
> +++ b/lisp/erc/erc.el
> @@ -1445,7 +1445,10 @@ Special commands:
>  \\{erc-mode-map}
>  Turning on `erc-mode' runs the hook `erc-mode-hook'."
> -  (kill-all-local-variables)
> +  (let ((recon-count erc-server-reconnect-count) (old-mode major-mode))
> +    (kill-all-local-variables)
> +    (if (and (eq old-mode 'erc-mode) (integerp recon-count) (< 0 
> recon-count)) 
> +     (setq erc-server-reconnect-count recon-count)))
>    (use-local-map erc-mode-map)
>    (setq mode-name "ERC"
>       major-mode 'erc-mode
> Is this still a problem in erc in Emacs 25?

More information was requested, but no response was given within a 
month, so I'm closing this bug report.  If the problem still exists,
please reopen this bug report.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]