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

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

[elpa] externals/posframe 9e9b16b 2/3: use version< instead of string>


From: Feng Shu
Subject: [elpa] externals/posframe 9e9b16b 2/3: use version< instead of string>
Date: Tue, 1 Dec 2020 02:00:46 -0500 (EST)

branch: externals/posframe
commit 9e9b16b0b27d1ca1973773db9bcdfada9475f34a
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    use version< instead of string>
---
 posframe.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/posframe.el b/posframe.el
index d089f6b..daad961 100644
--- a/posframe.el
+++ b/posframe.el
@@ -685,9 +685,9 @@ posframe from catching keyboard input if the window manager 
selects it."
              (frame-parameter (selected-frame) 'no-accept-focus))
     (redirect-frame-focus posframe--frame (frame-parent))))
 
-(if (string> emacs-version "27.1")
-    (add-function :after after-focus-change-function 
#'posframe--redirect-posframe-focus)
-  (add-hook 'focus-in-hook #'posframe--redirect-posframe-focus))
+(if (version< emacs-version "27.1")
+    (add-hook 'focus-in-hook #'posframe--redirect-posframe-focus)
+  (add-function :after after-focus-change-function 
#'posframe--redirect-posframe-focus))
 
 (defun posframe--mouse-banish (parent-frame &optional posframe)
   "Banish mouse to the (0 . 0) of PARENT-FRAME.



reply via email to

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