GNU bug report logs - #5563
23.1; erc reconnection should reuse existing buffers

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Thu, 11 Feb 2010 17:01:02 UTC

Severity: minor

Tags: fixed, patch

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.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 5563 in the body.
You can then email your comments to 5563 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5563; Package emacs. (Thu, 11 Feb 2010 17:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Tromey <tromey <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 11 Feb 2010 17:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tromey <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; erc reconnection should reuse existing buffers
Date: Thu, 11 Feb 2010 10:00:31 -0700
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


I connect to multiple irc servers with erc.
There are a couple of channels that have the same name on different
servers; e.g. I have two different channels named #gdb.

erc puts these into buffers named #gdb and #gdb<2>.
Ok so far.

Now, on occasion I will lose connection to the servers.  erc will
reconnect.  In this case, usually the buffer #gdb will be properly
reused by the reconnection.  However, #gdb<2> will be discarded and erc
will make a new buffer named #gdb<3>.

I wish it always reused the existing buffer instead.



If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.6)
 of 2010-01-14 on x86-01.phx2.fedoraproject.org
Windowing system distributor `The X.Org Foundation', version 11.0.10603901
configured using `configure  '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  gnus-undo-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
SPC m y SPC o t h e r SPC b u g , SPC I ' l l SPC d 
o SPC t h a t SPC n o w <return> C-z o M-v M-v C-r 
e r c C-a = <switch-frame> <switch-frame> C-s = > C-s 
C-s C-a Q y SPC SPC n <switch-frame> <switch-frame> 
c SPC s M-x r e p o r t - e m <tab> b <tab> C-g <switch-frame> 
f l e <tab> C-a C-k C-x b i r <tab> f r <tab> <return> 
/ h e l p SPC / q u i t M-b <backspace> <return> / 
h e l p SPC d i s c o n n e c t <return> M-p M-p <return> 
C-x 1 C-c b f l <tab> I SPC c a n ' t SPC t e s t SPC 
i t SPC r i g h t SPC n o w SPC b u t SPC i f SPC / 
q u i t SPC w o r k s SPC w h i l e SPC r <backspace> 
e r c SPC <M-backspace> <M-backspace> i n SPC M-b M-b 
M-b M-b C-k b a s i c a l l y SPC I SPC w a n t SPC 
/ q u i t SPC t o SPC w o r k SPC i n t SPC h e SPC 
s i t u a t i o n SPC M-b M-b C-b C-t C-e w h e r e 
SPC C-a C-k <f10> <f10> <f10> <f10> M-v M-> C-z o M-x 
r e p o r t - e m a c s - b u g <return> <return> C-x 
1 C-x k <return> y e s <return> M-x p <return> M-p 
<return>

Recent messages:
Saving /home/tromey/.newsrc.eld...
Saving file /home/tromey/.newsrc.eld...
Wrote /home/tromey/.newsrc.eld
Saving /home/tromey/.newsrc.eld...done
Quit
Type C-x 1 to delete the help window.
Type C-x 4 C-o RET to restore the other window.  
Type C-x 4 C-o RET to restore the other window.
Mark set
Making completion list...

Tom





bug reassigned from package 'emacs' to 'emacs,erc'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2010 19:30:03 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2010 19:30:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5563; Package emacs,erc. (Sat, 13 Feb 2010 02:08:02 GMT) Full text and rfc822 format available.

Message #12 received at 5563 <at> debbugs.gnu.org (full text, mbox):

From: Vivek Dasmohapatra <vivek <at> etla.org>
To: 5563 <at> debbugs.gnu.org
Subject: zealously reacquiring orphaned erc buffers
Date: Sat, 13 Feb 2010 02:06:54 +0000 (GMT)
[Message part 1 (text/plain, inline)]
Tags: patch

This patch should address the case you are seeing - you'll still get
orphaned buffers if you connect to the same server on different ports,
but the patch is trivially extendable to cover that case, should we
decide we care about it.
[0001-Be-smarter-about-reacquiring-orphaned-erc-buffers.patch (text/x-diff, attachment)]

Added tag(s) patch. Request was from Vivek Dasmohapatra <vivek <at> etla.org> to control <at> debbugs.gnu.org. (Mon, 15 Feb 2010 02:50:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5563; Package emacs. (Sun, 03 Jul 2011 19:45:02 GMT) Full text and rfc822 format available.

Message #17 received at 5563 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Vivek Dasmohapatra <vivek <at> etla.org>
Cc: 5563 <at> debbugs.gnu.org
Subject: Re: zealously reacquiring orphaned erc buffers
Date: Sun, 03 Jul 2011 21:44:34 +0200
Vivek Dasmohapatra <vivek <at> etla.org> writes:

> Tags: patch
>
> This patch should address the case you are seeing - you'll still get
> orphaned buffers if you connect to the same server on different ports,
> but the patch is trivially extendable to cover that case, should we
> decide we care about it.
>
> diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el

Apparently this patch was never applied?  If it is still applicable, I
can apply it now.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5563; Package emacs. (Mon, 04 Jul 2011 13:02:02 GMT) Full text and rfc822 format available.

Message #20 received at 5563 <at> debbugs.gnu.org (full text, mbox):

From: Vivek Dasmohapatra <vivek <at> etla.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 5563 <at> debbugs.gnu.org
Subject: Re: zealously reacquiring orphaned erc buffers
Date: Mon, 4 Jul 2011 14:01:30 +0100 (BST)
> Apparently this patch was never applied?  If it is still applicable, I
> can apply it now.

Still applies cleanly, code doesn't seem to have changed so should still
be applicable.





Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 04 Jul 2011 13:25:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 5563 <at> debbugs.gnu.org and Tom Tromey <tromey <at> redhat.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 04 Jul 2011 13:25:03 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5563; Package emacs. (Mon, 04 Jul 2011 13:26:02 GMT) Full text and rfc822 format available.

Message #27 received at 5563 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Vivek Dasmohapatra <vivek <at> etla.org>
Cc: 5563 <at> debbugs.gnu.org
Subject: Re: zealously reacquiring orphaned erc buffers
Date: Mon, 04 Jul 2011 15:23:44 +0200
Vivek Dasmohapatra <vivek <at> etla.org> writes:

> Still applies cleanly, code doesn't seem to have changed so should still
> be applicable.

Ok; I've now applied it to Emacs 24.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Aug 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.