aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-15 06:00:33 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-15 06:03:08 +0100
commitbc525a885565b55bcf4e054ec39556384bccc050 (patch)
tree7bfc16d74be4a7fbcb7e01ecf840f563ffe33ce1
parent42df9609d53ee5be5bed0cebf8f4ea78ab4c5468 (diff)
compat-28: Add test for count-windows
-rw-r--r--compat-28.el2
-rw-r--r--compat-tests.el5
-rw-r--r--compat.texi2
3 files changed, 7 insertions, 2 deletions
diff --git a/compat-28.el b/compat-28.el
index ebcb68a..6a5b035 100644
--- a/compat-28.el
+++ b/compat-28.el
@@ -712,7 +712,7 @@ is included in the return value."
;;;; Defined in windows.el
-(compat-defun count-windows (&optional minibuf all-frames) ;; <UNTESTED>
+(compat-defun count-windows (&optional minibuf all-frames) ;; <OK>
"Handle optional argument ALL-FRAMES.
If ALL-FRAMES is non-nil, count the windows in all frames instead
just the selected frame."
diff --git a/compat-tests.el b/compat-tests.el
index 4e3edd2..7e0ee18 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -206,6 +206,11 @@
(should-equal (getenv A) B))
(should-not (getenv A))))
+(ert-deftest count-windows ()
+ (should (fixnump (compat-call count-windows)))
+ (should (fixnump (compat-call count-windows t)))
+ (should (fixnump (compat-call count-windows t t))))
+
(ert-deftest recenter ()
(save-window-excursion
(set-window-buffer nil (current-buffer))
diff --git a/compat.texi b/compat.texi
index 8025fc1..2e3e9fb 100644
--- a/compat.texi
+++ b/compat.texi
@@ -820,7 +820,7 @@ The function @code{func-arity}.
@item
The function @code{secure-hash-algorithms}.
@item
-The function @code{gnutls-avalaible-p}.
+The function @code{gnutls-available-p}.
@item
Support for records and record functions.
@item