]> git.eshelyaron.com Git - emacs.git/commit
Make erc-keep-place-indicator aware of erc-truncate
authorF. Jason Park <jp@neverwas.me>
Mon, 9 Sep 2024 22:23:46 +0000 (15:23 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 20:34:05 +0000 (22:34 +0200)
commit15ffcc74fb3519010395af0cc7ffb5c120e6799e
tree51c8cb391eb2d5d7547d91663d7be1af142b9b16
parente757f81bbbde9978cde9ae89eea9a21567807d21
Make erc-keep-place-indicator aware of erc-truncate

* etc/ERC-NEWS: Entry mentioning `erc-keep-place-indicator-truncation'.
* lisp/erc/erc-goodies.el (erc-keep-place-indicator-truncation): New
option.  Something like this should have accompanied the module's
introduction.
(erc-keep-place-indicator-mode, erc-keep-place-indicator-enable)
(erc-keep-place-indicator-disable): Arrange to take necessary measures
to avoid losing the indicator on `erc--clear-function'.  This module was
first introduced by bug#59943.
(erc--keep-place-move-hook): New variable.
(erc--keep-place-indicator-adjust-on-clear): New function.
(erc-keep-place-move): Try to ensure the overlay resides at the
beginning of a message.  Run hook `erc--keep-place-move-hook'.
* test/lisp/erc/erc-scenarios-keep-place-indicator-trunc.el: New file.
* test/lisp/erc/erc-scenarios-keep-place-indicator.el
(erc-scenarios-keep-place-indicator--follow): Fix missing test
description.  (Bug#72736)

(cherry picked from commit 4d7f41716e1485fb57efc6eac9f45f2879c90266)
etc/ERC-NEWS
lisp/erc/erc-goodies.el
test/lisp/erc/erc-scenarios-keep-place-indicator-trunc.el [new file with mode: 0644]
test/lisp/erc/erc-scenarios-keep-place-indicator.el