emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 0dc4e84 36/39: Use window-size-change-functions for detect


From: Justin Burkett
Subject: [elpa] master 0dc4e84 36/39: Use window-size-change-functions for detecting size changes
Date: Thu, 21 Jun 2018 15:48:18 -0400 (EDT)

branch: master
commit 0dc4e8472254b8e4317863ca7950f2a428dcb12d
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>

    Use window-size-change-functions for detecting size changes
    
    Fixes #193
---
 which-key.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/which-key.el b/which-key.el
index 8c9784d..e4c372d 100644
--- a/which-key.el
+++ b/which-key.el
@@ -782,7 +782,7 @@ problems at github. If DISABLE is non-nil disable support."
         (add-hook 'pre-command-hook #'which-key--hide-popup)
         (add-hook 'focus-out-hook #'which-key--stop-timer)
         (add-hook 'focus-in-hook #'which-key--start-timer)
-        (add-hook 'window-configuration-change-hook
+        (add-hook 'window-size-change-functions
                   'which-key--hide-popup-on-frame-size-change)
         (which-key--start-timer))
     (setq echo-keystrokes which-key--echo-keystrokes-backup)
@@ -793,7 +793,7 @@ problems at github. If DISABLE is non-nil disable support."
     (remove-hook 'pre-command-hook #'which-key--hide-popup)
     (remove-hook 'focus-out-hook #'which-key--stop-timer)
     (remove-hook 'focus-in-hook #'which-key--start-timer)
-    (remove-hook 'window-configuration-change-hook
+    (remove-hook 'window-size-change-functions
                  'which-key--hide-popup-on-frame-size-change)
     (which-key--stop-timer)))
 
@@ -1092,7 +1092,7 @@ total height."
     (frame (which-key--hide-buffer-frame))
     (custom (funcall which-key-custom-hide-popup-function))))
 
-(defun which-key--hide-popup-on-frame-size-change ()
+(defun which-key--hide-popup-on-frame-size-change (&optional _)
   "Hide which-key popup if the frame is resized (to trigger a new
 popup)."
   (when (which-key--frame-size-changed-p)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]