diff options
author | Phil Sainty <psainty@orcon.net.nz> | 2021-03-20 21:48:18 +1300 |
---|---|---|
committer | Phil Sainty <psainty@orcon.net.nz> | 2021-08-03 23:20:07 +1200 |
commit | 0ec67a295632f3c4ac92e0b6a0070f67dedac4eb (patch) | |
tree | ff20978b19f94946de56c8a965cc87e8a9c2eff2 /test | |
parent | 748df220efdd46439578f252ee18091770c82af6 (diff) | |
download | emacs-0ec67a295632f3c4ac92e0b6a0070f67dedac4eb.tar.gz |
; so-long-tests.el: Suppress expected warnings
* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-invisible-buffer-function): Suppress warning about
obsolete function `run-window-configuration-change-hook', as we are
using it intentionally (see the preceding code comments and URL for
details).
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/so-long-tests/so-long-tests.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lisp/so-long-tests/so-long-tests.el b/test/lisp/so-long-tests/so-long-tests.el index 56c20e63b55..80f1c477cf8 100644 --- a/test/lisp/so-long-tests/so-long-tests.el +++ b/test/lisp/so-long-tests/so-long-tests.el @@ -195,7 +195,9 @@ ;; Emacs adds the framework necessary to make `redisplay' work ;; in batch mode. (unless (eq so-long--active t) - (run-window-configuration-change-hook)))) + (with-suppressed-warnings + ((obsolete run-window-configuration-change-hook)) + (run-window-configuration-change-hook))))) (so-long-tests-assert-and-revert 'so-long-mode)) ;; `so-long-invisible-buffer-function' is `nil'. (with-temp-buffer @@ -230,7 +232,9 @@ (redisplay) (when noninteractive (unless (eq so-long--active t) - (run-window-configuration-change-hook)))) + (with-suppressed-warnings + ((obsolete run-window-configuration-change-hook)) + (run-window-configuration-change-hook))))) (should (eq major-mode 'emacs-lisp-mode)))) (ert-deftest so-long-tests-actions () |