]> git.eshelyaron.com Git - emacs.git/commit
Fix buffer-mismatch bug in erc-scroll-to-bottom
authorF. Jason Park <jp@neverwas.me>
Thu, 18 May 2023 02:48:02 +0000 (19:48 -0700)
committerF. Jason Park <jp@neverwas.me>
Fri, 14 Jul 2023 01:45:31 +0000 (18:45 -0700)
commite51e43b7046b56c58310854182a1d589ee4c770c
tree36c1bfd3ef5f05cba1ee1334b08e6ca2b10e5e25
parent9bdc5c62049f471ec4cb370aaad8cd238525d54c
Fix buffer-mismatch bug in erc-scroll-to-bottom

* lisp/erc/erc-goodies.el (erc-scroll-to-bottom): Only `recenter' when
the selected window's buffer is current.  Previously, the module
`scrolltobottom' signaled an "Error in `post-command-hook'" when a
user clicked a channel indicator in the mode line from a window
showing another ERC buffer.
* lisp/erc/erc-track.el (erc-track--switch-fallback-blockers): New
internal variable used by `erc-track--switch-buffer' in deciding
whether to set `erc-track-last-non-erc-buffer' to the current buffer.
(erc-track--switch-buffer): Consult list of `buffer-match-p'
conditions in `erc-track--switch-fallback-blockers' to decide whether
to set `erc-track-last-non-erc-buffer' to the current buffer.
(Bug#63595)
lisp/erc/erc-goodies.el
lisp/erc/erc-track.el