emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/so-long cf5ef99 07/10: ; so-long-tests.el: Suppress expected war


From: Phil Sainty
Subject: scratch/so-long cf5ef99 07/10: ; so-long-tests.el: Suppress expected warnings
Date: Thu, 29 Jul 2021 23:59:39 -0400 (EDT)

branch: scratch/so-long
commit cf5ef99d90a187eba7b3b33349e7a5a605ac35c7
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Phil Sainty <psainty@orcon.net.nz>

    ; 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).
---
 test/lisp/so-long-tests/so-long-tests.el | 8 ++++++--
 1 file 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 56c20e6..80f1c47 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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]