From: Kelvin White <kwhite@gnu.org>
To: emacs-devel@gnu.org
Subject: [PATCH] ERC bugfixes and improvements
Date: Wed, 06 Aug 2014 14:01:02 -0400 [thread overview]
Message-ID: <87oavxh50h.wl%kwhite@gnu.org> (raw)
I plan to install the following patch in emacs trunk if there are no
objections. This patch fixes a bug in loss of user mode prefix display,
and adds feature to rename server buffers to network name if available.
=== modified file 'lisp/erc/erc.el'
--- lisp/erc/erc.el 2014-07-08 19:45:24 +0000
+++ lisp/erc/erc.el 2014-08-06 17:36:30 +0000
@@ -4783,10 +4783,10 @@
(setq name (substring item 1))
(setf (pcase (aref item 0)
((pred (eq voice-ch)) voice)
- ((pred (eq hop-ch)) hop)
+ ((pred (eq hop-ch)) halfop)
((pred (eq op-ch)) op)
- ((pred (eq adm-ch)) adm)
- ((pred (eq own-ch)) own))
+ ((pred (eq adm-ch)) admin)
+ ((pred (eq own-ch)) owner))
'on)))
(when updatep
(puthash (erc-downcase name) t
@@ -6233,7 +6233,10 @@
(cond ((erc-default-target)
(concat (erc-string-no-properties (erc-default-target))
"@" network-name))
- (network-name network-name)
+ ((and network-name
+ (not (string-equal network-name (buffer-name))))
+ (rename-buffer network-name)
+ network-name)
(t (buffer-name (current-buffer))))))
reply other threads:[~2014-08-06 18:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87oavxh50h.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.