aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Burkett2024-04-13 15:56:34 -0400
committerJustin Burkett2024-04-13 15:56:34 -0400
commit4e7739cdf879bb5be6ec871527be204c3e5eb063 (patch)
treef51b04b3fdd34aacdd9f3ff6f923d3b50c8f520b
parentc606abd083387d85e96dbc9b7ebde52f214407c6 (diff)
downloademacs-4e7739cdf879bb5be6ec871527be204c3e5eb063.tar.gz
emacs-4e7739cdf879bb5be6ec871527be204c3e5eb063.zip
Add more debugging info to which-key--create-pages
-rw-r--r--which-key.el33
1 files changed, 29 insertions, 4 deletions
diff --git a/which-key.el b/which-key.el
index 7d859a90bc6..beb111211a8 100644
--- a/which-key.el
+++ b/which-key.el
@@ -2124,11 +2124,36 @@ is the width of the live window."
2124 ;; `which-key-allow-imprecise-window-fit' is non-nil. 2124 ;; `which-key-allow-imprecise-window-fit' is non-nil.
2125 (setf (which-key--pages-height result) which-key-min-display-lines)) 2125 (setf (which-key--pages-height result) which-key-min-display-lines))
2126 (which-key--debug-message "Frame height: %s 2126 (which-key--debug-message "Frame height: %s
2127Frame pixel width: %s
2128Frame char width: %s
2129Frame width: %s
2130Which-key initial width: %s
2131Which-key adjusted width: %s
2127Minibuffer height: %s 2132Minibuffer height: %s
2128Max dimensions: (%s,%s) 2133Max dimensions: (%s, %s)
2129Available for bindings: (%s,%s) 2134Available for bindings: (%s, %s)
2130Actual lines: %s" (frame-height) (window-text-height (minibuffer-window)) 2135Popup type info: (%s, %s, %s)
2131max-lines max-width avl-lines avl-width (which-key--pages-height result)) 2136Computed page widths: %s
2137Actual lines: %s"
2138 (frame-height)
2139 (frame-pixel-width)
2140 (frame-char-width)
2141 (window-total-width (frame-root-window))
2142 (which-key--width-or-percentage-to-width
2143 which-key-side-window-max-width)
2144 (which-key--total-width-to-text
2145 (which-key--width-or-percentage-to-width
2146 which-key-side-window-max-width))
2147 (window-text-height (minibuffer-window))
2148 max-lines
2149 max-width
2150 avl-lines
2151 avl-width
2152 which-key-popup-type
2153 which-key-side-window-location
2154 which-key-side-window-max-width
2155 (which-key--pages-widths result)
2156 (which-key--pages-height result))
2132 result))) 2157 result)))
2133 2158
2134(defun which-key--lighter-status () 2159(defun which-key--lighter-status ()