Skip to content

Commit

Permalink
Add more debugging info to which-key--create-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
justbur committed Apr 13, 2024
1 parent c606abd commit 4e7739c
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions which-key.el
Expand Up @@ -2124,11 +2124,36 @@ is the width of the live window."
;; `which-key-allow-imprecise-window-fit' is non-nil.
(setf (which-key--pages-height result) which-key-min-display-lines))
(which-key--debug-message "Frame height: %s
Frame pixel width: %s
Frame char width: %s
Frame width: %s
Which-key initial width: %s
Which-key adjusted width: %s
Minibuffer height: %s
Max dimensions: (%s,%s)
Available for bindings: (%s,%s)
Actual lines: %s" (frame-height) (window-text-height (minibuffer-window))
max-lines max-width avl-lines avl-width (which-key--pages-height result))
Max dimensions: (%s, %s)
Available for bindings: (%s, %s)
Popup type info: (%s, %s, %s)
Computed page widths: %s
Actual lines: %s"
(frame-height)
(frame-pixel-width)
(frame-char-width)
(window-total-width (frame-root-window))
(which-key--width-or-percentage-to-width
which-key-side-window-max-width)
(which-key--total-width-to-text
(which-key--width-or-percentage-to-width
which-key-side-window-max-width))
(window-text-height (minibuffer-window))
max-lines
max-width
avl-lines
avl-width
which-key-popup-type
which-key-side-window-location
which-key-side-window-max-width
(which-key--pages-widths result)
(which-key--pages-height result))
result)))

(defun which-key--lighter-status ()
Expand Down

0 comments on commit 4e7739c

Please sign in to comment.