]> git.eshelyaron.com Git - emacs.git/commit
; Load erc-compat before ert-x in ERC tests
authorF. Jason Park <jp@neverwas.me>
Fri, 9 Feb 2024 03:19:53 +0000 (19:19 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 17 Feb 2024 13:02:39 +0000 (14:02 +0100)
commit869d27619fd4b6b4f2245a1318c5442c3cf01ade
tree44de98651c86467dba208436018860dbaad480fc
parenta71212b358e82a10f6d34de29fe66ed92b2202ef
; Load erc-compat before ert-x in ERC tests

Avoid eager macro-expansion error in tests files on Emacs 27 and 28 by
ensuring definitions provided by Compat, like `macroexp-file-name',
load first.

* lisp/erc/erc-speedbar.el (erc-speedbar--reset-last-ran-on-timer):
Suppress "`buffer-local-value' is an obsolete generalized variable"
warning on Emacs 29 and below.
* lisp/erc/erc-stamp.el (erc-stamp--time-as-day): Avoid "unused
lexical variable `current-time-list'" warning on 28 and below.
* lisp/erc/erc.el (erc-check-text-conversion): Add `defvar' for
`text-conversion-style' to avoid "reference to free variable" warning
on Emacs 29 and below.
* test/lisp/erc/erc-button-tests.el: Load `erc-button' before `ert-x'.
* test/lisp/erc/erc-fill-tests.el: Load `erc-fill' before `ert-x'.
* test/lisp/erc/erc-goodies-tests.el: Load `erc-goodies' before
`ert-x'.
* test/lisp/erc/erc-networks-tests.el: Explicitly load `erc-compat'
before anything else.
* test/lisp/erc/erc-scenarios-base-renick.el: Update timeouts.
* test/lisp/erc/erc-stamp-tests.el: Load `erc-stamp' before `ert-x'.
* test/lisp/erc/erc-tests.el: Load `erc-ring' before `ert-x'.

(cherry picked from commit a43b062ee57fd9b7c410e741946e51281db5b92a)
lisp/erc/erc-speedbar.el
lisp/erc/erc-stamp.el
lisp/erc/erc.el
test/lisp/erc/erc-button-tests.el
test/lisp/erc/erc-fill-tests.el
test/lisp/erc/erc-goodies-tests.el
test/lisp/erc/erc-networks-tests.el
test/lisp/erc/erc-scenarios-base-renick.el
test/lisp/erc/erc-stamp-tests.el
test/lisp/erc/erc-tests.el