diff options
| author | F. Jason Park | 2023-08-17 19:18:50 -0700 |
|---|---|---|
| committer | F. Jason Park | 2023-08-25 14:47:07 -0700 |
| commit | b93757029c9d8a7e401f7eeb0bc32ca508c212ee (patch) | |
| tree | d191c60c07d6c3e34311d4f4f44c36a60fa61c2f /test | |
| parent | 75b3fb3cb42385612d446ee1907b87e64d988c2f (diff) | |
| download | emacs-b93757029c9d8a7e401f7eeb0bc32ca508c212ee.tar.gz emacs-b93757029c9d8a7e401f7eeb0bc32ca508c212ee.zip | |
Warn about implicit logging in erc-truncate-mode
* etc/ERC-NEWS: Add entry explaining that `erc-truncate-mode' no
longer quasi-activates `erc-log-mode' under certain conditions.
* lisp/erc/erc-log.el
(erc-log--call-when-logging-enabled-sans-module): Add helper for use
by the `truncate' module during initialization.
* lisp/erc/erc-truncate.el (erc-truncate-mode, erc-truncate-enable,
erc-truncate-disable): Warn on `erc-connect-pre-hook' when conditions
exist that would have seen logging transparently activated in older
ERC versions.
(erc-truncate--warn-about-logging): New function to warn about
implicit logging on pre-connect.
(erc-truncate-buffer-to-size): Clarify some comments and revise doc
string.
* test/lisp/erc/erc-scenarios-log.el (erc-scenarios-log--truncate):
Disable `erc-truncate-mode' even though `erc-modules' is shadowed so
that `erc-insert-done-hook' and friends are not contaminated.
`(Bug#60936)
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/erc/erc-scenarios-log.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/erc/erc-scenarios-log.el b/test/lisp/erc/erc-scenarios-log.el index c37e6b323aa..fd030d90c2f 100644 --- a/test/lisp/erc/erc-scenarios-log.el +++ b/test/lisp/erc/erc-scenarios-log.el | |||
| @@ -202,6 +202,7 @@ | |||
| 202 | (funcall expect -0.1 "please your lordship"))) | 202 | (funcall expect -0.1 "please your lordship"))) |
| 203 | 203 | ||
| 204 | (erc-log-mode -1) | 204 | (erc-log-mode -1) |
| 205 | (erc-truncate-mode -1) | ||
| 205 | (when noninteractive (delete-directory tempdir :recursive)))) | 206 | (when noninteractive (delete-directory tempdir :recursive)))) |
| 206 | 207 | ||
| 207 | ;;; erc-scenarios-log.el ends here | 208 | ;;; erc-scenarios-log.el ends here |