1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-11 02:10:35 -08:00
emacs/lisp/erc
Mingde (Matthew) Zeng 88567ca8ec Fix erc-reuse-buffers behavior
* lisp/erc/erc.el (erc-generate-new-buffer-name): Fixes behavior 1,
also determines if the '#channel/server' buffer already exists
and will reuse that buffer when joining on the same
server. Additionally when creating a new buffer with
'#channel/serverB', the existing buffer '#channel' on 'severA' will be
renamed to '#channel/serverA' for the sake of consistency (bug#40121).

* lisp/erc/erc-join.el (erc-autojoin-channels): The logic is
simplified ensuring that when autojoining channels specified in
erc-autojoin-channels-alist, if there exists an erc buffer with the
same channel name but a different server, it will create a new buffer
to join the channel. The current logic is very weak that will skip
joining same channel on different servers altogether.

By the definition of erc-reuse-buffers, if non-nil it should create a
new buffer when joining channels with same names on different
servers. The current behavior of erc-reuse-buffers is:
1. when non-nil, it will always reuse the same channel buffer,
resulting in server A's channel gets reconnected to the channel with
the same name of server B.
2. when nil, the buffer-name of the joined channel is
'#channel/server'. However if one tries to '/join #channel' from the
server buffer, it creates a new empty buffer with buffer-name
'#channel', instead of opening the already-joined channel buffer.
2020-08-12 13:09:40 +02:00
..
ChangeLog.1
ChangeLog.2
erc-autoaway.el Make some erc function aliases obsolete 2020-08-02 07:55:02 +02:00
erc-backend.el Make some erc function aliases obsolete 2020-08-02 07:55:02 +02:00
erc-button.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-capab.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-compat.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-dcc.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-desktop-notifications.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-ezbounce.el Merge from origin/emacs-27 2020-03-23 09:46:39 -07:00
erc-fill.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-goodies.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-ibuffer.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-identd.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-imenu.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-join.el Fix erc-reuse-buffers behavior 2020-08-12 13:09:40 +02:00
erc-lang.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-list.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-log.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-match.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-menu.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-netsplit.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-networks.el Make more erc function aliases obsolete 2020-08-07 14:02:01 +02:00
erc-notify.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-page.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-pcomplete.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-replace.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-ring.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-services.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-sound.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-speedbar.el Merge from origin/emacs-27 2020-03-23 09:46:39 -07:00
erc-spelling.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-stamp.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-track.el New function erc-track-switch-buffer-other-window 2020-04-14 00:23:56 -04:00
erc-truncate.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc-xdcc.el ERC: Update maintainer address 2020-03-18 21:27:49 -04:00
erc.el Fix erc-reuse-buffers behavior 2020-08-12 13:09:40 +02:00