* [PATCH] Add all-frames as arg for count windows.
@ 2020-08-15 12:11 Jen-Chieh Shen
0 siblings, 0 replies; only message in thread
From: Jen-Chieh Shen @ 2020-08-15 12:11 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1110 bytes --]
Hi,
I think it is handy to have `all-frames` as an argument when using the
`count-windows` function?
Best,
Jen-Chieh Shen
From 226154c0c338845af757a6893db9645870cb9a12 Mon Sep 17 00:00:00 2001
From: jenchieh <jcs090218@gmail.com>
Date: Sat, 15 Aug 2020 15:57:14 +0800
Subject: [PATCH] Add all-frames as arg for count windows.
---
lisp/window.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/lisp/window.el b/lisp/window.el
index f20940fa0e..591f019a7c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2644,9 +2644,14 @@ and no others."
(defun count-windows (&optional minibuf)
"Return the number of live windows on the selected frame.
+
The optional argument MINIBUF specifies whether the minibuffer
-window shall be counted. See `walk-windows' for the precise
-meaning of this argument."
+window shall be counted.
+
+The optional argument ALL-FRAMES counted all windows instead of
+just the selected frame.
+
+See `walk-windows' for the precise meaning of this argument."
(length (window-list-1 nil minibuf)))
;;; Resizing windows.
--
2.27.0.windows.1
[-- Attachment #1.2: Type: text/html, Size: 1414 bytes --]
[-- Attachment #2: cnt-win-frames.patch --]
[-- Type: application/octet-stream, Size: 989 bytes --]
From 226154c0c338845af757a6893db9645870cb9a12 Mon Sep 17 00:00:00 2001
From: jenchieh <jcs090218@gmail.com>
Date: Sat, 15 Aug 2020 15:57:14 +0800
Subject: [PATCH] Add all-frames as arg for count windows.
---
lisp/window.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/lisp/window.el b/lisp/window.el
index f20940fa0e..591f019a7c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2644,9 +2644,14 @@ and no others."
(defun count-windows (&optional minibuf)
"Return the number of live windows on the selected frame.
+
The optional argument MINIBUF specifies whether the minibuffer
-window shall be counted. See `walk-windows' for the precise
-meaning of this argument."
+window shall be counted.
+
+The optional argument ALL-FRAMES counted all windows instead of
+just the selected frame.
+
+See `walk-windows' for the precise meaning of this argument."
(length (window-list-1 nil minibuf)))
\f
;;; Resizing windows.
--
2.27.0.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-15 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-15 12:11 [PATCH] Add all-frames as arg for count windows Jen-Chieh Shen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.