From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Allow irc networks in erc-autojoin-channels-alist Date: Tue, 10 Mar 2015 20:34:47 +0100 Message-ID: <87lhj47ijs.fsf@fsfe.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1426016124 12456 80.91.229.3 (10 Mar 2015 19:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2015 19:35:24 +0000 (UTC) Cc: Emacs development discussions To: Kelvin White Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 10 20:35:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YVPvt-0006Il-EK for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2015 20:35:13 +0100 Original-Received: from localhost ([::1]:51095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVPvp-0005k2-Kt for ged-emacs-devel@m.gmane.org; Tue, 10 Mar 2015 15:35:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVPva-0005jw-RS for emacs-devel@gnu.org; Tue, 10 Mar 2015 15:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVPvX-0006EJ-I3 for emacs-devel@gnu.org; Tue, 10 Mar 2015 15:34:54 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVPvX-0006Du-Dr for emacs-devel@gnu.org; Tue, 10 Mar 2015 15:34:51 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8A76D2069B; Tue, 10 Mar 2015 15:34:47 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 10 Mar 2015 15:34:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:message-id:mime-version:content-type; s=smtpout; bh=0RZQkf dY09yobNN0pZu2/xTNB9s=; b=hl4654say/NNw3ffbnkgl9mUH2z4Y2nEOMx6Vr 31+uW54r6LDARMvc4pRlpj3nmAyM67ndI5vzlUc9GEc+wGZKDGx67aXyzBv+ZzFB ueX2jyPXo+zoPC/KxtGm3RX4rejmzsi4NNdQ5azKCRXuvfmtJT30irYP+5vWFGJO Qne0k= X-Sasl-enc: YDlv6iEj85FZYRJih2o/UvdwfyClqhifmV04sabRbSEu 1426016088 Original-Received: from kiwiarch (unknown [84.210.14.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 820D5C002A3; Tue, 10 Mar 2015 15:34:48 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.26 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183768 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kelvin White writes: > In the Emacs 24.5 release there is an option to use network name as > the buffer name. Can you install this version and see if it solves the > issue? I'm still not quite sure where what your issue is specifically, > where you're seeing the problem exactly I tried emacs-git-25.0.50.r120726 now (without my patched erc-join.el), and tried setting the new option `erc-rename-buffers' to t, but that doesn't fix my problem. From what I can tell, the erc-join code doesn't care about buffer names (or the mode-line format), only erc-server-announced-name/erc-session-server, when choosing what channels to join. The problem is that the erc-server-announced-name/erc-session-server returned from my Weechat relay is "relay.irc" (while erc-network is the more useful 'freenode or 'Bitlbee). So say that I first join the freenode network through my relay, then join #fsf; now erc-autojoin-channels-alist will contain an entry ("relay.irc" "#fsf") Then I join the BitlBee network though my relay, which also has that same server-name "relay.irc", and erc tries to autojoin #fsf on the BitlBee network since it doesn't know how to tell that they're different From=20each other. (Similarly, I would have to use "relay.irc" as the key in erc-autojoin-channels-alist in order to autojoin anything at all on the first connect.) =2D-=20 Kevin Brubeck Unhammer GPG: 0x766AC60C --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJU/0dXAAoJEPw8Hn0AkxZn0EwP/R75fW9HVmT98Fp4NZ0LcMvN 2ihfKiFNLfBIc0MwZj18lBrKj89lhM/slpurIRBuOyQORBLPcsjgGDqIYiIebRKs tBvHzkskzBNz/9XITyl0yTaTqZwyhjT35ZlYH0Y2Lmw7vOUwFeE84kPZzLyE3RFk kbHTdV7Ud7ylvVWZf0BZM5PJpBpk+V19vVoSQnivhder/Hj/pzNSScTIGk+ttCA9 EPybsU3cHMwhRSOttyFPFL2kQo/1LrVyfc5bxaZfB/daQqpEKf4YF7bUn7YoBzrA GUA9ifyejIB5b6z4xN9YgAtahyce7bT4DXxA5j9sN1KrZB20KCUK1nWMBhclgoOX ft7SsOiTtgaTAbVdQPcdZVFwiC01lovRLpiY+u0kheeNxgkJCtdbgvY0HtZzljhj RlCayQKHEAlOijGx1L/RYvWTAjhRmjdEShTiMdAUDiu1BGnR+uAFWASNPck5t7Y+ NMckihYc21z1wPMm77ze2vkv+VUAfy6O8pQCq5jQ3MHUgfF9j8bK2Ek0A9afeXdz +dHPdDfZuP8kLO/DyBWxWjXtRTqGPgd4ytMaylVYpUETSkuRbbjcSlZZXCdOfjvd yDdwMfodQ1H0y95NeI9Xfzo8HgirQ50YExinnrNgbcG8ai0h+vbOuJpxkFN4g30l fkOheKsWmeg+UQKAMte1 =b3rK -----END PGP SIGNATURE----- --=-=-=--