]> git.eshelyaron.com Git - emacs.git/commit
Restore deferred date-stamp insertions in ERC
authorF. Jason Park <jp@neverwas.me>
Wed, 5 Jun 2024 07:22:28 +0000 (00:22 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Jun 2024 05:31:05 +0000 (07:31 +0200)
commite976769ed996e218f6f1d5f52b8c7a738f02bc83
treedda5beeda51f762526cad19e9f0612511dff3c1b
parente4d50c9f437630039ee220baabe358a515d6da49
Restore deferred date-stamp insertions in ERC

* lisp/erc/erc-stamp.el (erc-stamp--recover-on-reconnect): Treat
`erc-stamp--deferred-date-stamp' as a permanent-local variable.
(erc-stamp--date): Document expected possible values for `fn' slot.
(erc-stamp--defer-date-insertion-on-post-modify): Use the function
`ignore' to mean a new `erc-timer-hook' member has been requested.
Use nil to mean one has already run.  Deferred date stamps are new in
ERC 5.6 and Emacs 30.
(erc-stamp--date-mode): Improve doc string.
* test/lisp/erc/erc-scenarios-stamp.el
(erc-scenarios-stamp--date-mode/reconnect): New test.

(cherry picked from commit f6bfa1844b53d6ccd24fd02092ae482d481fc5a5)
lisp/erc/erc-stamp.el
test/lisp/erc/erc-scenarios-stamp.el