From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vivek Dasmohapatra Newsgroups: gmane.emacs.bugs Subject: bug#4048: 23.1; erc-server-reconnect-attempts does not work Date: Thu, 11 Feb 2010 01:17:05 +0000 (GMT) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1004439438-1265851027=:17999" X-Trace: ger.gmane.org 1265851357 31067 80.91.229.12 (11 Feb 2010 01:22:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 01:22:37 +0000 (UTC) Cc: 4048@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 11 02:22:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfNlJ-0002wP-Rd for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Feb 2010 02:22:34 +0100 Original-Received: from localhost ([127.0.0.1]:56079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfNlI-0005k3-R8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 20:22:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfNlE-0005jK-0D for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 20:22:28 -0500 Original-Received: from [199.232.76.173] (port=58439 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfNlC-0005j9-KJ for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 20:22:26 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfNlB-0007Wp-Ke for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 20:22:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35338) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfNlA-0007WZ-Go for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 20:22:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NfNgw-0005tT-2A; Wed, 10 Feb 2010 20:18:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Vivek Dasmohapatra Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Feb 2010 01:18:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 4048 X-Emacs-PR-Package: emacs,erc X-Emacs-PR-Keywords: Original-Received: via spool by 4048-submit@debbugs.gnu.org id=B4048.126585105922638 (code B ref 4048); Thu, 11 Feb 2010 01:18:02 +0000 Original-Received: (at 4048) by debbugs.gnu.org; 11 Feb 2010 01:17:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfNgZ-0005t5-Bw for submit@debbugs.gnu.org; Wed, 10 Feb 2010 20:17:39 -0500 Original-Received: from flounder.pepperfish.net ([87.237.62.181]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfNgX-0005sx-41 for 4048@debbugs.gnu.org; Wed, 10 Feb 2010 20:17:37 -0500 Original-Received: from localhost ([127.0.0.1]) by flounder.pepperfish.net with esmtps (Exim 4.69 #1 (Debian)) id 1NfNg3-0005mM-C4; Thu, 11 Feb 2010 01:17:07 +0000 X-X-Sender: vivek@octopus.pepperfish.net In-Reply-To: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Feb 2010 20:18:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35029 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1004439438-1265851027=:17999 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Tags: patch 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. ] --8323329-1004439438-1265851027=:17999 Content-Type: TEXT/x-diff; name=0001-Preserve-the-reconnection-count-when-reinitialising-.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=0001-Preserve-the-reconnection-count-when-reinitialising-.patch ZGlmZiAtLWdpdCBhL2xpc3AvZXJjL2VyYy5lbCBiL2xpc3AvZXJjL2VyYy5l bA0KLS0tIGEvbGlzcC9lcmMvZXJjLmVsDQorKysgYi9saXNwL2VyYy9lcmMu ZWwNCkBAIC0xNDQ1LDcgKzE0NDUsMTAgQEAgU3BlY2lhbCBjb21tYW5kczoN CiBcXHtlcmMtbW9kZS1tYXB9DQogDQogVHVybmluZyBvbiBgZXJjLW1vZGUn IHJ1bnMgdGhlIGhvb2sgYGVyYy1tb2RlLWhvb2snLiINCi0gIChraWxsLWFs bC1sb2NhbC12YXJpYWJsZXMpDQorICAobGV0ICgocmVjb24tY291bnQgZXJj LXNlcnZlci1yZWNvbm5lY3QtY291bnQpIChvbGQtbW9kZSBtYWpvci1tb2Rl KSkNCisgICAgKGtpbGwtYWxsLWxvY2FsLXZhcmlhYmxlcykNCisgICAgKGlm IChhbmQgKGVxIG9sZC1tb2RlICdlcmMtbW9kZSkgKGludGVnZXJwIHJlY29u LWNvdW50KSAoPCAwIHJlY29uLWNvdW50KSkgDQorCShzZXRxIGVyYy1zZXJ2 ZXItcmVjb25uZWN0LWNvdW50IHJlY29uLWNvdW50KSkpDQogICAodXNlLWxv Y2FsLW1hcCBlcmMtbW9kZS1tYXApDQogICAoc2V0cSBtb2RlLW5hbWUgIkVS QyINCiAJbWFqb3ItbW9kZSAnZXJjLW1vZGUNCg0KDQo= --8323329-1004439438-1265851027=:17999--