1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
emacs/test/lisp/erc
F. Jason Park 9acd8c8e53 Tidy up ERC's internal text-property API
* lisp/erc/erc-fill.el (erc-fill--spaced-commands): Remove unused
internal variable originally intended for ERC 5.6.
(erc-fill): Check for `erc-msg' being `msg', which carries the same
meaning as `erc-cmd' being `PRIVMSG' or `NOTICE', except that inserted
outgoing messages now no longer normally have an `erc-cmd' property.
(erc-fill-wrap-mode, erc-fill-wrap-disable): Kill
`erc-fill--wrap-last-msg'.
(erc-fill--wrap-max-lull): Convert from buffer-local to normal
variable.
(erc-fill--wrap-continued-message-p): Rework slightly to guard against
resetting the "last speaker" marker when the `erc-ephemeral' text
property is present.  This tells insert- and send-related hook members
to pretend the current message doesn't exist when performing stateful
operations.  That is, modules should expect the message being inserted
to possibly disappear or be replaced.  Also, look for `erc-msg' being
`msg' instead of `erc-cmd' being `PRIVMSG', and fix bug involving only
checking `erc-ctcp' in the current message.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Don't insert timestamps
when the `erc-ephemeral' text property is present.
* lisp/erc/erc.el (erc--msg-props): Add doc string explaining the
purpose of this variable and the various text properties most commonly
present in its value.
(erc--msg-prop-overrides): Add doc string.
(erc-send-action): Don't set `erc-cmd' prop on outgoing CTCP ACTIONs.
(erc-display-message): Reverse overrides to prefer items toward the
front of the alist.
(erc-process-ctcp-query): Include existing overrides from environs.
(erc-send-current-line): Include existing overrides from environs.
(erc-display-msg): Fix doc string and reverse overrides.
* test/lisp/erc/erc-fill-tests.el (erc-fill-tests--insert-privmsg):
Remove stray comment.
(erc-fill-tests--save-p): Set value from environment variable.
(erc-fill-tests--compare): Limit writing snapshots to one test at a
time.
(erc-fill-wrap--merge-action): Fix expected output for non-action
messages that follow action messages.  These were previously merged
but escaped detection.
* test/lisp/erc/resources/fill/snapshots/merge-wrap-01.eld: Update.
(Bug#60936)
2023-10-27 13:09:29 -07:00
..
resources Tidy up ERC's internal text-property API 2023-10-27 13:09:29 -07:00
erc-button-tests.el Ignore erc-response objects in error-notice helper 2023-08-25 14:47:07 -07:00
erc-dcc-tests.el
erc-fill-tests.el Tidy up ERC's internal text-property API 2023-10-27 13:09:29 -07:00
erc-goodies-tests.el
erc-join-tests.el
erc-match-tests.el
erc-networks-tests.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-nicks-tests.el
erc-sasl-tests.el
erc-scenarios-auth-source.el
erc-scenarios-base-association-nick.el
erc-scenarios-base-association-query.el
erc-scenarios-base-association-samenet.el
erc-scenarios-base-association.el
erc-scenarios-base-attach.el
erc-scenarios-base-auto-recon.el
erc-scenarios-base-buffer-display.el
erc-scenarios-base-compat-rename-bouncer.el
erc-scenarios-base-local-module-modes.el
erc-scenarios-base-local-modules.el
erc-scenarios-base-misc-regressions.el
erc-scenarios-base-netid-bouncer-id.el
erc-scenarios-base-netid-bouncer-recon-base.el
erc-scenarios-base-netid-bouncer-recon-both.el
erc-scenarios-base-netid-bouncer-recon-id.el
erc-scenarios-base-netid-bouncer.el
erc-scenarios-base-netid-samenet.el
erc-scenarios-base-reconnect.el
erc-scenarios-base-renick.el
erc-scenarios-base-reuse-buffers.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-scenarios-base-split-line.el
erc-scenarios-base-unstable.el
erc-scenarios-base-upstream-recon-soju.el
erc-scenarios-base-upstream-recon-znc.el
erc-scenarios-display-message.el Restore missing metadata props in erc-display-line 2023-10-20 14:53:24 -07:00
erc-scenarios-internal.el
erc-scenarios-join-auth-source.el
erc-scenarios-join-display-context.el
erc-scenarios-join-netid-newcmd-id.el
erc-scenarios-join-netid-newcmd.el
erc-scenarios-join-netid-recon-id.el
erc-scenarios-join-netid-recon.el
erc-scenarios-log.el ; Mark erc-log test as :unstable 2023-10-20 14:53:23 -07:00
erc-scenarios-match.el Swap hook positions of erc-fill and erc-match-message 2023-10-13 07:47:01 -07:00
erc-scenarios-misc.el
erc-scenarios-sasl.el
erc-scenarios-scrolltobottom-relaxed.el Skip post-minibuffer restore in erc-scrolltobottom-all 2023-10-13 07:47:00 -07:00
erc-scenarios-scrolltobottom.el ; Increase ERC test server queue size 2023-10-02 17:26:27 -07:00
erc-scenarios-services-misc.el
erc-scenarios-stamp.el Ignore date stamps completely in erc-track 2023-10-27 13:08:44 -07:00
erc-scenarios-status-sidebar.el Prevent unwanted recursion in erc-nickbar-disable 2023-08-25 14:47:07 -07:00
erc-services-tests.el
erc-stamp-tests.el Manage some text props for ERC insertion-hook members 2023-10-13 07:47:01 -07:00
erc-tests.el Use marker for max pos in erc--traverse-inserted 2023-10-27 13:09:13 -07:00
erc-track-tests.el