1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-27 15:40:47 -08:00
emacs/test/lisp/erc/resources/base
F. Jason Park 7ffc79690a Restore missing metadata props in erc-display-line
* etc/ERC-NEWS: Designate `erc-display-message' as the favored means
of inserting messages.
* lisp/erc/erc-fill.el (erc-fill-wrap): Skip any `unknown' `erc-msg'.
* lisp/erc/erc-stamp.el (erc-stamp--current-time): Use an existing
`erc-ts' text property, when present, for the current message time.
* lisp/erc/erc.el (erc-display-line-1, erc-insert-line): Update doc
string and declare the former an obsolete alias for the latter,
`erc-insert-line'.  Have `erc-log' label say `erc-display-message'
even though this function is actually `erc-insert-line'.
(erc-display-line): Convert to a thin wrapper around
`erc-display-message', and move its existing body to a new internal
function, `erc--route-insertion'.
(erc--route-insertion): Adopt former body of `erc-display-line', now a
convenience wrapper around `erc-display-message'.  Copy
`erc--msg-props' hash table when inserting a message in multiple
buffers.  At present, only `erc-server-QUIT' uses this facility, so
such a move shouldn't impact performance in any measurable way.  Also,
improve readability with at most one recursive call for the
fall-through case.
(erc--compose-text-properties, erc--merge-text-properties-p): Rename
former to latter to avoid confusion with `composition' property.
(erc-display-message): Update doc string.  Attempt to adapt a non-nil
TYPE parameter for use as the value of the `erc-msg' text property
before resorting to a value of `unknown'.  But only do this when
PARSED is nil, and MSG is a string.  Call `erc--route-insertion'
instead of `erc-display-line'.  Use new name for
`erc--compose-text-properties'.
(erc-put-text-property): Update name of variable
`erc--compose-text-properties'.
* test/lisp/erc/erc-networks-tests.el (erc-networks--set-name): Mock
`erc--route-insertion' instead of `erc-display-line'.
* test/lisp/erc/erc-scenarios-display-message.el: New file.
* test/lisp/erc/erc-tests.el (erc--route-insertion): New test.
* test/lisp/erc/resources/base/display-message/multibuf.eld: New test
data.
; * test/lisp/erc/resources/fill/snapshots/merge-01-start.eld: Update.
; * test/lisp/erc/resources/fill/snapshots/merge-02-right.eld: Update.
; * test/lisp/erc/resources/fill/snapshots/merge-wrap-01.eld: Update.
; * 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.
; * test/lisp/erc/resources/fill/snapshots/stamps-left-01.eld: Update.
(Bug#60936)
2023-10-20 14:53:24 -07:00
..
assoc Allow spoofing process marker in erc-display-line-1 2023-10-13 07:47:00 -07:00
auth-source Standardize auth-source queries in ERC 2022-06-30 15:18:22 -07:00
channel-buffer-revival Revive option erc-query-on-unjoined-chan-privmsg 2023-05-05 17:18:01 -07:00
commands Add MOTD command to ERC 2023-04-08 14:23:50 -07:00
display-message Restore missing metadata props in erc-display-line 2023-10-20 14:53:24 -07:00
flood ; Allow alternate ert-info text in ERC test utility 2023-09-10 17:58:20 -07:00
gapless-connect Add preset styles to erc-status-sidebar 2023-07-13 18:45:31 -07:00
local-modules Don't send erc-sasl-user as USER command argument 2022-12-14 06:40:55 -08:00
mask-target-routing
netid Allow spoofing process marker in erc-display-line-1 2023-10-13 07:47:00 -07:00
reconnect ; Allow alternate ert-info text in ERC test utility 2023-09-10 17:58:20 -07:00
renick ; Mark erc-log test as :unstable 2023-10-20 14:53:23 -07:00
reuse-buffers ; Mark erc-log test as :unstable 2023-10-20 14:53:23 -07:00
upstream-reconnect ; Fix typos: prefer American spelling 2022-07-14 12:13:31 +02:00