GNU bug report logs -
#32285
erc loses access to original session when connecting again to same host
Previous Next
Reported by: Emacs Watcher <emacswatcher <at> gmail.com>
Date: Fri, 27 Jul 2018 01:42:01 UTC
Severity: minor
Tags: confirmed
Found in version 26.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Emacs Watcher <emacswatcher <at> gmail.com> writes:
> You should notice that the 'freenode' buffer has been reused and that the
> original session cannot be reached. My guess is that this is an original ERC
> design limitation, but it probably ought to be addressed.
It looks like it does this on purpose: It a server buffer exists, and
it's connected to the server you're using, then it's reused:
;; if buf-name is taken by a different connection (or by something !erc)
;; then see if "buf-name/server" meets the same criteria
(dolist (candidate (list buf-name (concat buf-name "/" server)))
(if (and (not buffer-name)
erc-reuse-buffers
(or (not (get-buffer candidate))
(or target
(with-current-buffer (get-buffer candidate)
(and (erc-server-buffer-p)
(not (erc-server-process-alive)))))
(with-current-buffer (get-buffer candidate)
(and (string= erc-session-server server)
(erc-port-equal erc-session-port port)))))
(setq buffer-name candidate)))
If you don't want this, then erc-reuse-buffers should be set to nil,
apparently.
So this doesn't seem to be a bug, and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.