diff options
| author | Justin Burkett | 2024-04-13 15:56:34 -0400 |
|---|---|---|
| committer | Justin Burkett | 2024-04-13 15:56:34 -0400 |
| commit | 4e7739cdf879bb5be6ec871527be204c3e5eb063 (patch) | |
| tree | f51b04b3fdd34aacdd9f3ff6f923d3b50c8f520b | |
| parent | c606abd083387d85e96dbc9b7ebde52f214407c6 (diff) | |
| download | emacs-4e7739cdf879bb5be6ec871527be204c3e5eb063.tar.gz emacs-4e7739cdf879bb5be6ec871527be204c3e5eb063.zip | |
Add more debugging info to which-key--create-pages
| -rw-r--r-- | which-key.el | 33 |
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 |
| 2127 | Frame pixel width: %s | ||
| 2128 | Frame char width: %s | ||
| 2129 | Frame width: %s | ||
| 2130 | Which-key initial width: %s | ||
| 2131 | Which-key adjusted width: %s | ||
| 2127 | Minibuffer height: %s | 2132 | Minibuffer height: %s |
| 2128 | Max dimensions: (%s,%s) | 2133 | Max dimensions: (%s, %s) |
| 2129 | Available for bindings: (%s,%s) | 2134 | Available for bindings: (%s, %s) |
| 2130 | Actual lines: %s" (frame-height) (window-text-height (minibuffer-window)) | 2135 | Popup type info: (%s, %s, %s) |
| 2131 | max-lines max-width avl-lines avl-width (which-key--pages-height result)) | 2136 | Computed page widths: %s |
| 2137 | Actual 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 () |