[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu-doc 7c546a3eae 16/95: Hide popup frame when candi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu-doc 7c546a3eae 16/95: Hide popup frame when candidate documentation is empty |
Date: |
Tue, 19 Jul 2022 15:58:01 -0400 (EDT) |
branch: externals/corfu-doc
commit 7c546a3eae8c7acb63a46c37b69848a80dbeeaf1
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Hide popup frame when candidate documentation is empty
---
corfu-doc.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index da5149c3d8..a142887a91 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -257,9 +257,11 @@
(equal cf-frame-edges corfu-doc--cf-frame-edges)
(eq (selected-window) corfu-doc--window))
;; show doc frame
- (when-let* ((doc (ignore-errors (corfu-doc-fetch-documentation))))
- (eval `(corfu-doc--make-frame
- ,@(corfu-doc--calculate-doc-frame-position) ,doc)))))
+ (if-let* ((res (ignore-errors (corfu-doc-fetch-documentation)))
+ (doc (unless (string-empty-p (string-trim res)) res)))
+ (eval `(corfu-doc--make-frame
+ ,@(corfu-doc--calculate-doc-frame-position) ,doc))
+ (corfu-doc--hide))))
(corfu-doc--hide))
(setq corfu-doc--candidate candidate)
(setq corfu-doc--cf-frame-edges cf-frame-edges)
- [elpa] externals/corfu-doc a0508b031e 85/95: Inline the function to scroll the doc popup, (continued)
- [elpa] externals/corfu-doc a0508b031e 85/95: Inline the function to scroll the doc popup, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 0c5bd800f6 71/95: Fix frame flicker When display the doc immediately, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 7f7e251173 92/95: Fix #19: display a warning when child frames unavailable, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc cfca07f581 81/95: Require corfu 0.25, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 48f629a0c2 87/95: Add new option to choose the method to transition the doc popup, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc b5477fd110 90/95: Version 0.7, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d05a3caeb8 02/95: Hide doc frame when there are no candidates, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 53b58bbc70 01/95: Initial commit, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 000388fe97 06/95: Silent a compiler warning, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc f89ddb7c65 12/95: Sync corfu's update on redisplay hack, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 7c546a3eae 16/95: Hide popup frame when candidate documentation is empty,
ELPA Syncer <=
- [elpa] externals/corfu-doc f030d58176 17/95: Version 0.0.4, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc eac54c356a 07/95: Version 0.0.2, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 807af9fb2e 08/95: Fix #2: fix frame position calculation when there are multiple displays, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc c2460635d9 19/95: Inhibit message when fetching the candidate documentation, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc fa5f36599d 20/95: Force to refresh corfu echo message, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc fa6cb6b384 45/95: Add melpa badge, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 07307b68a3 49/95: Version 0.4.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 8d8f9317dd 35/95: Version 0.2.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 348fc32035 40/95: Version 0.3.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 6c62c6634f 37/95: README: Document reducing the popup flickering, ELPA Syncer, 2022/07/19