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 /etc | |
| 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 'etc')
| -rw-r--r-- | etc/ERC-NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/ERC-NEWS b/etc/ERC-NEWS index 94452514e6d..7ee55982b17 100644 --- a/etc/ERC-NEWS +++ b/etc/ERC-NEWS | |||
| @@ -196,6 +196,13 @@ these changes has been the deprecation of the ancient option | |||
| 196 | 'erc-truncate-buffer-on-save'. Users of the 'log' module can achieve | 196 | 'erc-truncate-buffer-on-save'. Users of the 'log' module can achieve |
| 197 | the same effect by issuing a "/CLEAR" at the prompt. | 197 | the same effect by issuing a "/CLEAR" at the prompt. |
| 198 | 198 | ||
| 199 | ** The 'truncate' module no longer enables logging automatically. | ||
| 200 | Users expecting 'truncate' to perform logging based on the option | ||
| 201 | 'erc-enable-logging' need to instead add 'log' to 'erc-modules' for | ||
| 202 | continued integration. With the existing design, merely loading the | ||
| 203 | library 'erc-log' caused 'truncate' to start writing logs, possibly | ||
| 204 | against a user's wishes. | ||
| 205 | |||
| 199 | ** Miscellaneous UX changes. | 206 | ** Miscellaneous UX changes. |
| 200 | Some minor quality-of-life niceties have finally made their way to | 207 | Some minor quality-of-life niceties have finally made their way to |
| 201 | ERC. For example, the function 'erc-echo-timestamp' is now | 208 | ERC. For example, the function 'erc-echo-timestamp' is now |