[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu-doc 214b14115e 39/95: Hide doc frame if there is
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu-doc 214b14115e 39/95: Hide doc frame if there is no documentation |
Date: |
Tue, 19 Jul 2022 15:58:03 -0400 (EDT) |
branch: externals/corfu-doc
commit 214b14115e7464a01ea22e513a52af6783a32e42
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Hide doc frame if there is no documentation
---
corfu-doc.el | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index d6cbd2f9e5..4c83919588 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -331,16 +331,18 @@ FWIDTH and FHEIGHT."
(corfu-doc--calculate-doc-frame-position))
(setq corfu-doc--cf-frame-edges cf-frame-edges)))
;; fetch documentation and show
- (when-let* ((res (ignore-errors (corfu-doc-fetch-documentation)))
- (doc (unless (string-empty-p (string-trim res)) res)))
- (corfu-doc--make-frame doc)
- (apply #'corfu-doc--set-frame-position
- corfu-doc--frame
- (corfu-doc--calculate-doc-frame-position))
- (setq corfu-doc--candidate candidate)
- (setq corfu-doc--cf-frame-edges cf-frame-edges)))
- (corfu--echo-refresh)
- (setq corfu-doc--window (selected-window)))))
+ (if-let* ((res (ignore-errors (corfu-doc-fetch-documentation)))
+ (doc (unless (string-empty-p (string-trim res)) res)))
+ (progn
+ (corfu-doc--make-frame doc)
+ (apply #'corfu-doc--set-frame-position
+ corfu-doc--frame
+ (corfu-doc--calculate-doc-frame-position))
+ (setq corfu-doc--candidate candidate)
+ (setq corfu-doc--cf-frame-edges cf-frame-edges)
+ (corfu--echo-refresh)
+ (setq corfu-doc--window (selected-window)))
+ (corfu-doc-hide))))))
(defun corfu-doc-manually ()
(interactive)
- [elpa] externals/corfu-doc c2460635d9 19/95: Inhibit message when fetching the candidate documentation, (continued)
- [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
- [elpa] externals/corfu-doc 8313341ae8 52/95: Version 0.4.2, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 84f344ce60 31/95: Version 0.2.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 15dfe652f5 22/95: Automatically resize the corfu doc frame, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 214b14115e 39/95: Hide doc frame if there is no documentation,
ELPA Syncer <=
- [elpa] externals/corfu-doc 95fdae5755 46/95: Update installation, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc df8d7e2242 34/95: README: Document `corfu-doc-hide-threshold`, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 2a3f515022 63/95: Add corfu-doc--popup-scroll function, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc b3394359de 54/95: Fix #9 (again): fix error when candidate index is nil, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 6c0653336d 36/95: Avoid doc frame repositioning delay, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 2e74659620 60/95: Hide the doc frame when current candidate is nil, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 807448a3de 38/95: Version 0.3.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 5a6f4f879d 59/95: Version 0.5.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 91e66b0804 25/95: Avoid warning if x-gtk-resize-child-frames is missing, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 904df4f99a 62/95: Make corfu-doc-mode a global minor mode, ELPA Syncer, 2022/07/19