[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu-doc caccd94757 88/95: Inline the function to get
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu-doc caccd94757 88/95: Inline the function to get coordinates of the corfu popup |
Date: |
Tue, 19 Jul 2022 15:58:07 -0400 (EDT) |
branch: externals/corfu-doc
commit caccd9475783cfc12ab5c49d44b6ca7535e84a4a
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Inline the function to get coordinates of the corfu popup
---
corfu-doc.el | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index 3c0db30a09..b3ac2f194b 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -388,10 +388,6 @@ FWIDTH and FHEIGHT."
(and (> corfu--total 0)
(nth corfu--index corfu--candidates)))
-(defun corfu-doc--get-cf-popup-edges ()
- "Get coordinates of the corfu popup."
- (frame-edges corfu--frame 'inner))
-
(defun corfu-doc--should-refresh-popup (candidate)
"Determine whether the doc popup should be refreshed.
@@ -411,7 +407,7 @@ compared with the value recorded by `corfu-doc--candiate'."
(corfu-doc--calc-popup-position
(frame-pixel-width corfu-doc--frame)
(frame-pixel-height corfu-doc--frame)))
- (setq corfu-doc--cf-popup-edges (corfu-doc--get-cf-popup-edges))))
+ (setq corfu-doc--cf-popup-edges (frame-edges corfu--frame 'inner))))
(defun corfu-doc--update-popup (doc)
"Update the documentation popup with the DOC content."
@@ -443,7 +439,7 @@ The optional CANDIDATE-INDEX is the the current completion
candidate index."
(error "Corfu-doc requires child frames to display documentation"))
(when (corfu-doc--should-show-popup candidate-index)
(when-let ((candidate (corfu-doc--get-candidate))
- (cf-popup-edges (corfu-doc--get-cf-popup-edges)))
+ (cf-popup-edges (frame-edges corfu--frame 'inner)))
(if (corfu-doc--should-refresh-popup candidate)
(corfu-doc--refresh-popup)
;; fetch documentation and show
@@ -499,7 +495,7 @@ The optional CANDIDATE-INDEX is the the current completion
candidate index."
(defun corfu-doc--cf-popup-edges-changed-p ()
"Determine whether the coordinates of the corfu popup have changed."
- (not (equal (corfu-doc--get-cf-popup-edges)
+ (not (equal (frame-edges corfu--frame 'inner)
corfu-doc--cf-popup-edges)))
(defun corfu-doc--popup-transition ()
- [elpa] externals/corfu-doc f63395100e 69/95: Fix typo (#14), (continued)
- [elpa] externals/corfu-doc f63395100e 69/95: Fix typo (#14), ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 96b5de8cce 61/95: Version 0.5.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 611895ef47 66/95: Version 0.6.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 7b10759a2e 73/95: Fix warnings, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 8170be8375 77/95: Fix duplicate code, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d89012ed6a 68/95: Version 0.6.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc cc13a259dd 86/95: No need to check corfu-mode, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 7997122f70 67/95: Fix error that resize doc popup when refreshing, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc aadf628d98 79/95: Remove redundant :group args, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 733739d090 78/95: Add and adjust docstrings, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc caccd94757 88/95: Inline the function to get coordinates of the corfu popup,
ELPA Syncer <=
- [elpa] externals/corfu-doc 5dd2a2987a 94/95: Don't display warning when child frame is not supported (#17, #19), ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 78032cf8e2 91/95: Revert "Inline the function to get coordinates of the corfu popup", ELPA Syncer, 2022/07/19