summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sainty <psainty@orcon.net.nz>2021-03-20 21:48:18 +1300
committerPhil Sainty <psainty@orcon.net.nz>2021-03-21 16:22:43 +1300
commit62e46bf21dc73a5e0e74cb6cd56dd76efb12858b (patch)
tree709f7131ac0bc48e9d4f6de2805032cc291f4992
parent723bf5ddee08fd2af6646e0cf82c94d8111667b5 (diff)
downloademacs-62e46bf21dc73a5e0e74cb6cd56dd76efb12858b.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).
-rw-r--r--test/lisp/so-long-tests/so-long-tests.el8
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 ()