]> git.eshelyaron.com Git - emacs.git/commit
Measure stamps pixel-wise with erc-fill-wrap
authorF. Jason Park <jp@neverwas.me>
Mon, 5 Jun 2023 09:35:53 +0000 (02:35 -0700)
committerF. Jason Park <jp@neverwas.me>
Mon, 12 Jun 2023 02:52:00 +0000 (19:52 -0700)
commit1c3f6aa98f5ab0ddc99fd778dd17fd72a1052aa3
treefa2cd05cfc2fa870e7dacdb5bca9982d046b7d6e
parente560f9af8e8edb2cd41a08c6b0e8637cbac7b1f5
Measure stamps pixel-wise with erc-fill-wrap

* lisp/erc/erc-fill.el (erc-fill-wrap-mode, erc-fill-wrap-enable):
Change "how" for advice applied to `erc-stamp--insert-date-function'
from `:filter-args' to `:after'.
(erc-fill--wrap-stamp-insert-prefixed-date): Change signature to
conform to `:after'-style advice.  Use `buffer-text-pixel-size' when
desired and available for generating display spec.
(erc-fill-wrap): Remove confusing comment.  Don't apply text props to
newlines because there's no obvious use case for inheriting these.
* lisp/erc/erc.el (erc-send-action, erc-display-msg): Add
`erc-command' property (as "PRIVMSG") to inserted message, sans
newline, so that all inserted messages in an ERC buffer contain this
property.
* test/lisp/erc/resources/fill/snapshots/merge-01-start.eld: Update data.
* test/lisp/erc/resources/fill/snapshots/merge-02-right.eld: Update data.
* test/lisp/erc/resources/fill/snapshots/monospace-01-start.eld: Update.
* test/lisp/erc/resources/fill/snapshots/monospace-02-right.eld: Update.
* test/lisp/erc/resources/fill/snapshots/monospace-03-left.eld: Update.
* test/lisp/erc/resources/fill/snapshots/monospace-04-reset.eld: Update.
* test/lisp/erc/resources/fill/snapshots/spacing-01-mono.eld: Update.
(Bug#60936)
lisp/erc/erc-fill.el
lisp/erc/erc.el
test/lisp/erc/erc-fill-tests.el
test/lisp/erc/resources/fill/snapshots/merge-01-start.eld
test/lisp/erc/resources/fill/snapshots/merge-02-right.eld
test/lisp/erc/resources/fill/snapshots/monospace-01-start.eld
test/lisp/erc/resources/fill/snapshots/monospace-02-right.eld
test/lisp/erc/resources/fill/snapshots/monospace-03-left.eld
test/lisp/erc/resources/fill/snapshots/monospace-04-reset.eld
test/lisp/erc/resources/fill/snapshots/spacing-01-mono.eld