[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/so-long 62e46bf 07/10: ; so-long-tests.el: Suppress expected war
From: |
Phil Sainty |
Subject: |
scratch/so-long 62e46bf 07/10: ; so-long-tests.el: Suppress expected warnings |
Date: |
Sat, 20 Mar 2021 23:25:15 -0400 (EDT) |
branch: scratch/so-long
commit 62e46bf21dc73a5e0e74cb6cd56dd76efb12858b
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 ()
- branch scratch/so-long created (now ee03831), Phil Sainty, 2021/03/20
- scratch/so-long 5e414a4 01/10: ; * lisp/so-long.el: Documentation, Phil Sainty, 2021/03/20
- scratch/so-long 99dd121 03/10: Increase `so-long-threshold' and `so-long-max-lines' defaults, Phil Sainty, 2021/03/20
- scratch/so-long 8b5667f 04/10: Make `global-so-long-mode' handle unrecognised file types, Phil Sainty, 2021/03/20
- scratch/so-long 723bf5d 06/10: ; * lisp/so-long.el: Minor bug fixes, Phil Sainty, 2021/03/20
- scratch/so-long 62e46bf 07/10: ; so-long-tests.el: Suppress expected warnings,
Phil Sainty <=
- scratch/so-long 1ed2008 02/10: ; * lisp/so-long.el: Bump to version 1.1, Phil Sainty, 2021/03/20
- scratch/so-long a2f2790 05/10: * lisp/so-long.el (so-long-minor-modes): Add smartparens modes, Phil Sainty, 2021/03/20
- scratch/so-long ee03831 10/10: WIP: Update tests to cover usage of `buffer-line-statistics', Phil Sainty, 2021/03/20
- scratch/so-long 31843e5 09/10: WIP: Use `buffer-line-statistics', Phil Sainty, 2021/03/20
- scratch/so-long 6edeae3 08/10: Support 'preserved' variables and minor modes in `so-long-mode', Phil Sainty, 2021/03/20