emacs-devel
[Top][All Lists]
Advanced

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

[PATCH] Add all-frames as arg for count windows.


From: Jen-Chieh Shen
Subject: [PATCH] Add all-frames as arg for count windows.
Date: Sat, 15 Aug 2020 20:11:41 +0800

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: cnt-win-frames.patch
Description: Binary data


reply via email to

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