]> git.eshelyaron.com Git - emacs.git/commitdiff
; so-long-tests.el: Suppress expected warnings
authorPhil Sainty <psainty@orcon.net.nz>
Sat, 20 Mar 2021 08:48:18 +0000 (21:48 +1300)
committerPhil Sainty <psainty@orcon.net.nz>
Tue, 3 Aug 2021 11:20:07 +0000 (23:20 +1200)
* 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).

test/lisp/so-long-tests/so-long-tests.el

index 56c20e63b55fe8342b238a9e210e44d46be59008..80f1c477cf8c0956d2943be5c52b32533aad5098 100644 (file)
         ;; 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
       (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 ()