1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-26 01:40:53 -08:00

Comment out window var and add new func

The window var is not being used.
This commit is contained in:
justbur 2016-02-03 08:22:53 -05:00
parent 094136858f
commit 6ddebba30c

View file

@ -422,8 +422,8 @@ to a non-nil value for the execution of a command. Like this
;; Internal Vars
(defvar which-key--buffer nil
"Internal: Holds reference to which-key buffer.")
(defvar which-key--window nil
"Internal: Holds reference to which-key window.")
;; (defvar which-key--window nil
;; "Internal: Holds reference to which-key window.")
(defvar which-key--timer nil
"Internal: Holds reference to open window timer.")
(defvar which-key--paging-timer nil
@ -875,6 +875,9 @@ total height."
(when (frame-live-p which-key--frame)
(delete-frame which-key--frame)))
(defun which-key--popup-showing-p ()
(window-live-p (get-buffer-window which-key--buffer)))
(defun which-key--show-popup (act-popup-dim)
"Show the which-key buffer.
ACT-POPUP-DIM includes the dimensions, (height . width) of the