1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-11 15:53:21 -07:00
emacs/test/lisp/erc
F. Jason Park cf9728c4be Only perform erc-log-insert-log-on-open setup once
* etc/ERC-NEWS: Add entry for option `erc-log-insert-log-on-open'.
Mention deprecation of `erc-log-setup-logging'.
* lisp/erc/erc-log.el (erc-log-insert-log-on-open): Expand type from
boolean to choice of boolean, predicate, and new function item
`erc-log-new-target-buffer-p'.
(erc-log-mode, erc-log-enable, erc-log-disable): Replace
`erc-log-setup-logging' on `erc-connect-pre-hook' with
`erc-log--insert-log-on-open' at depth 80.  Replace calls to
`erc-log-setup-logging' with ones to `erc-log--setup'.
(erc-log-new-target-buffer-p): New function.  While the name could
perhaps do more to indicate that it's only useful when called from
`erc-open', that's the only place ERC typically sets up new target
buffers.
(erc-log-setup-logging): Deprecate and replace body with adapter that
calls `erc-log--setup' and `erc-log--insert-log-on-open'.
(erc-log--setup): New function whose body is mostly from the
"nondestructive" portion of `erc-log-setup-logging'.  Instead of moving
the `erc-saved-last-position' marker to the old value, expect it not to
have been initialized by `erc-initialize-log-marker' because
`erc-connect-pre-hook' now runs after this code, which is now
incorporated more judiciously into the module's "enable body".
(erc-log--insert-log-on-open): New function whose body is mostly from
the "destructive" portion of the previous incarnation of
`erc-log-setup-logging'.  Unlike the original, if option
`erc-log-insert-log-on-open' is a function, call it to decide whether to
insert a log file atop its buffer.  Also, don't advance the marker
`erc-last-saved-position' to the prompt area, where it can get stuck and
prevent logs from being saved when `erc-log-insert-log-on-open' is
non-nil.  Thanks to Libera user Lionyx for reporting the bug, which has
been around since at least ERC 5.4 and Emacs 28.1.
(erc-log-disable-logging): Remove `erc-save-buffer-in-logs' from
`write-file-functions' to undo its buffer-local addition in what is now
`erc--log-setup'.
* test/lisp/erc/erc-scenarios-log-options.el: New file.  (Bug#79665)
2026-04-30 15:46:42 -07:00
..
resources Restore erc-last-saved-position from previous session 2026-04-30 15:46:38 -07:00
erc-button-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-dcc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-fill-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-goodies-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-join-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-match-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-networks-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-nicks-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-notify-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-sasl-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-scenarios-auth-source.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-nick.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-query.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association-samenet.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-association.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-attach.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-auto-recon.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-buffer-display.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-chan-modes.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-compat-rename-bouncer.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-kill-on-part.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-local-module-modes.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-local-modules.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-misc-regressions.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-base.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-both.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer-recon-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-bouncer.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-netid-samenet.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-query-participants.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-reconnect.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-renick.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-reuse-buffers.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-send-message.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-split-line.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-statusmsg.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-unstable.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-upstream-recon-soju.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-base-upstream-recon-znc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-display-message.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-fill-wrap.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-ignore.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-internal.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-scenarios-join-auth-source.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-display-context.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-newcmd-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-newcmd.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-recon-id.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-netid-recon.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-join-timing.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-keep-place-indicator-trunc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-keep-place-indicator.el ; Tweak some ERC tests and related utilities 2026-04-30 15:46:29 -07:00
erc-scenarios-log-options.el Only perform erc-log-insert-log-on-open setup once 2026-04-30 15:46:42 -07:00
erc-scenarios-log.el Restore erc-last-saved-position from previous session 2026-04-30 15:46:38 -07:00
erc-scenarios-match.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-misc-commands.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-misc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-nicks-track.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-prompt-format.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-sasl.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-scrolltobottom-relaxed.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-scrolltobottom.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-services-misc.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-spelling.el ert-play-keys function 2026-04-16 13:30:42 +02:00
erc-scenarios-stamp.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-scenarios-status-sidebar.el Revert "Repair serious breakage in the batch tests." 2026-03-04 19:24:52 +01:00
erc-services-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-stamp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
erc-tests.el ; Tweak some ERC tests and related utilities 2026-04-30 15:46:29 -07:00
erc-track-tests.el Add tests for erc-track-faces-normal-list regression 2026-03-23 18:16:31 -07:00