]> git.eshelyaron.com Git - emacs.git/commit
Restore prompt correctly when reconnecting in ERC
authorF. Jason Park <jp@neverwas.me>
Sun, 26 Nov 2023 03:23:55 +0000 (19:23 -0800)
committerF. Jason Park <jp@neverwas.me>
Sun, 26 Nov 2023 22:25:27 +0000 (14:25 -0800)
commit2407f810136739da376ff0929b247a49dc196299
tree3475b93b1548bb75631adaaf11c6c289b1873729
parent01e7178917743470d05a5b1a5d883d07191e3014
Restore prompt correctly when reconnecting in ERC

* lisp/erc/erc.el (erc--initialize-markers): Commit 0d6c8d41ab7 "Use
overlay instead of text prop to hide ERC's prompt" introduced a bug
that caused the prompt to remain hidden upon reconnecting because the
stashed overlay would get clobbered by ERC's major-mode setup.
Binding its old value while unhiding fixes the issue.
* test/lisp/erc/erc-tests.el (erc-hide-prompt): Don't permanently set
the default value of `erc-hide-prompt'.
* test/lisp/erc/resources/erc-scenarios-common.el
(erc-scenarios-common--join-network-id): Add assertions for prompt
hiding and unhiding on reconnect.  (Bug#51082)
lisp/erc/erc.el
test/lisp/erc/erc-tests.el
test/lisp/erc/resources/erc-scenarios-common.el