Function: hycontrol-windows-grid-number-of-windows
hycontrol-windows-grid-number-of-windows is a byte-compiled function
defined in hycontrol.el.
Signature
(hycontrol-windows-grid-number-of-windows ARG)
Documentation
Return the product of the absolute value of the two digit numeric ARG.
The digits of ARG specify the number of rows (leftmost) by columns (rightmost) for a grid.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
(defun hycontrol-windows-grid-number-of-windows (arg)
"Return the product of the absolute value of the two digit numeric ARG.
The digits of ARG specify the number of rows (leftmost) by
columns (rightmost) for a grid."
(if (integerp arg)
(let* ((grid-size (abs arg))
(rows (floor (/ grid-size 10)))
(columns (- grid-size (* rows 10))))
(cond ((<= grid-size 10)
(hycontrol-windows-grid-number-of-windows
(hycontrol-windows-grid-minimum-size grid-size)))
((> grid-size 99)
81)
(t (* rows columns))))
(error "(hycontrol-windows-grid-number-of-windows): 'arg' must be an integer, not '%s'" arg)))