GNU bug report logs -
#12002
24.1.50; ERC nick change trouble
Previous Next
Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>
Date: Fri, 20 Jul 2012 23:03:02 UTC
Severity: normal
Tags: patch
Merged with 6016,
6502
Found in versions 23.1, 24.1.50
Fixed in version 24.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12002 in the body.
You can then email your comments to 12002 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12002
; Package
emacs
.
(Fri, 20 Jul 2012 23:03:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 20 Jul 2012 23:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
There's a bug in ERC nick change handling. Imagine you have a query with
john, who has a timeout. He then comes back as john-, and queries
you. Then, when his old timeout goes away, he changes nick back to
john. The ERC response handler then tries to change the john- query
buffer name to john, which clashes with the old buffer. Since there was
an error in the execution flow, everything is messed up.
Here's a patch that doesn't try to change the name back when a buffer of
the same name exists. It still notifies the old query buffer of the name
change though. I haven't tested it but it should be fine. (I think ...)
I'm not holding my breath on this, because of the lack of activity of
ERC maintainers. Still, at least the patch is out there.
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index cce24e6..115c31f 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1313,10 +1313,11 @@ add things to `%s' instead."
(erc-buffer-filter
(lambda ()
(when (equal (erc-default-target) nick)
- (setq erc-default-recipients
- (cons nn (cdr erc-default-recipients)))
- (rename-buffer nn)
- (erc-update-mode-line)
+ (unless (get-buffer nn)
+ (setq erc-default-recipients
+ (cons nn (cdr erc-default-recipients)))
+ (rename-buffer nn)
+ (erc-update-mode-line))
(add-to-list 'bufs (current-buffer)))))
(erc-update-user-nick nick nn host nil nil login)
(cond
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Sun, 07 Oct 2012 01:30:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 07 Oct 2012 01:30:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 12002-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.3
Thanks. I installed a simpler change (below). Please let me know if it
is not ok, since I don't use erc.
*** lisp/erc/erc-backend.el 2012-10-06 01:04:53 +0000
--- lisp/erc/erc-backend.el 2012-10-07 01:25:39 +0000
***************
*** 1316,1322 ****
(when (equal (erc-default-target) nick)
(setq erc-default-recipients
(cons nn (cdr erc-default-recipients)))
! (rename-buffer nn)
(erc-update-mode-line)
(add-to-list 'bufs (current-buffer)))))
(erc-update-user-nick nick nn host nil nil login)
--- 1316,1322 ----
(when (equal (erc-default-target) nick)
(setq erc-default-recipients
(cons nn (cdr erc-default-recipients)))
! (rename-buffer nn t) ; bug#12002
(erc-update-mode-line)
(add-to-list 'bufs (current-buffer)))))
(erc-update-user-nick nick nn host nil nil login)
Forcibly Merged 6016 6502 12002.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 07 Oct 2012 01:49:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 04 Nov 2012 12:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.