[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0ec67a2 07/11: ; so-long-tests.el: Suppress expected warnings
From: |
Phil Sainty |
Subject: |
master 0ec67a2 07/11: ; so-long-tests.el: Suppress expected warnings |
Date: |
Tue, 3 Aug 2021 07:44:26 -0400 (EDT) |
branch: master
commit 0ec67a295632f3c4ac92e0b6a0070f67dedac4eb
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 ()
- master updated (b44abac -> 3a56d4e), Phil Sainty, 2021/08/03
- master 359a8e4 02/11: ; * lisp/so-long.el: Bump to version 1.1, Phil Sainty, 2021/08/03
- master 985a3bd 01/11: ; * lisp/so-long.el: Documentation, Phil Sainty, 2021/08/03
- master 0ec67a2 07/11: ; so-long-tests.el: Suppress expected warnings,
Phil Sainty <=
- master 748df22 06/11: ; * lisp/so-long.el: Minor bug fixes, Phil Sainty, 2021/08/03
- master e871852 04/11: Make `global-so-long-mode' handle unrecognised file types, Phil Sainty, 2021/08/03
- master 7828f69 05/11: * lisp/so-long.el (so-long-minor-modes): Additional modes to disable, Phil Sainty, 2021/08/03
- master 10bd4bc 08/11: Support 'preserved' variables and minor modes in `so-long-mode', Phil Sainty, 2021/08/03
- master 3a56d4e 11/11: Merge branch 'scratch/so-long', Phil Sainty, 2021/08/03
- master 12cbe8e 09/11: ; Revert "Make `so-long' restore `view-mode'", Phil Sainty, 2021/08/03
- master 9df60d5 03/11: Increase `so-long-threshold' and `so-long-max-lines' defaults, Phil Sainty, 2021/08/03
- master 59128bb 10/11: Make `global-so-long-mode' use `buffer-line-statistics', Phil Sainty, 2021/08/03