From: Kelvin White <kwhite@gnu.org>
To: emacs-devel@gnu.org
Subject: ERC: [PATCH] use network name for server buffer name
Date: Thu, 24 Jul 2014 08:35:04 -0400 [thread overview]
Message-ID: <874my72avb.wl%kwhite@gnu.org> (raw)
This change mainly affects users that may connect to the same server
multiple times for multiple networks. e.g. bouncers like ZNC or proxy
users. In these cases a user will have multiple server-buffers with
the same name (i.e. irc.example.net:6697, irc.example.net:6697<2> etc.)
This patch will rename the server-buffer to whatever the network name
is, if available. Otherwise, the hostname:port will be used as normal.
=== modified file 'lisp/erc/erc.el'
--- lisp/erc/erc.el 2014-07-08 19:45:24 +0000
+++ lisp/erc/erc.el 2014-07-24 12:25:24 +0000
@@ -6233,7 +6233,9 @@
(cond ((erc-default-target)
(concat (erc-string-no-properties (erc-default-target))
"@" network-name))
- (network-name network-name)
+ (network-name
+ (rename-buffer network-name)
+ network-name)
(t (buffer-name (current-buffer))))))
next reply other threads:[~2014-07-24 12:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-24 12:35 Kelvin White [this message]
2014-07-25 6:32 ` ERC: [PATCH] use network name for server buffer name Cédric Chépied
2014-07-25 16:11 ` Mirek Kaim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874my72avb.wl%kwhite@gnu.org \
--to=kwhite@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.