[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/keycast 310e70780d 6/7: Move definitions of location predi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/keycast 310e70780d 6/7: Move definitions of location predicates |
Date: |
Wed, 26 Jan 2022 09:58:40 -0500 (EST) |
branch: elpa/keycast
commit 310e70780dcac8de93b4f84e5ed6b5eb785b4023
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Move definitions of location predicates
---
keycast.el | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/keycast.el b/keycast.el
index ccfa12402b..7bdb1fc464 100644
--- a/keycast.el
+++ b/keycast.el
@@ -278,6 +278,21 @@ instead."
(advice-add 'read-passwd :around #'keycast--read-passwd)
+(defun keycast-bottom-right-window-p ()
+ (and (window-at-side-p nil 'right)
+ (window-at-side-p nil 'bottom)))
+
+(defun keycast-active-frame-bottom-right-p ()
+ (and (keycast-bottom-right-window-p)
+ (keycast--active-frame-p)))
+
+(defun keycast--active-frame-p ()
+ (cond ((boundp 'moody--active-window)
+ (eq (window-frame) (window-frame moody--active-window)))
+ ((boundp 'powerline-selected-window)
+ (eq (window-frame) (window-frame powerline-selected-window)))
+ (t t)))
+
;;; Mode-Line
(defvar keycast--removed-tail nil)
@@ -319,21 +334,6 @@ instead."
(keycast--tree-member elt sub))))
(throw 'found found))))))
-(defun keycast-bottom-right-window-p ()
- (and (window-at-side-p nil 'right)
- (window-at-side-p nil 'bottom)))
-
-(defun keycast-active-frame-bottom-right-p ()
- (and (keycast-bottom-right-window-p)
- (keycast--active-frame-p)))
-
-(defun keycast--active-frame-p ()
- (cond ((boundp 'moody--active-window)
- (eq (window-frame) (window-frame moody--active-window)))
- ((boundp 'powerline-selected-window)
- (eq (window-frame) (window-frame powerline-selected-window)))
- (t t)))
-
(defvar keycast-mode-line
'(:eval
(and (funcall keycast-mode-line-window-predicate)
- [nongnu] elpa/keycast updated (72d9add8ba -> 99693da56b), ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast e4ee6ba0b2 5/7: Extend prefix of options that only affect the original keycast-mode, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast 5750aaf339 2/7: keycast-key: Use default height, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast 7b7059d560 3/7: keycast-separator-width: Remove option, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast 5ff96003e9 1/7: keycast-log-update-buffer: Don't fail in empty buffer, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast 99693da56b 7/7: keycast-tab-bar-mode: New mode, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast ed088d980b 4/7: keycast-substitute-alist: Move definition, ELPA Syncer, 2022/01/26
- [nongnu] elpa/keycast 310e70780d 6/7: Move definitions of location predicates,
ELPA Syncer <=