[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu-doc c968530f74 50/95: Fix #9: fix showing doc whi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu-doc c968530f74 50/95: Fix #9: fix showing doc while quickly browsing candidates |
Date: |
Tue, 19 Jul 2022 15:58:03 -0400 (EDT) |
branch: externals/corfu-doc
commit c968530f748bdf30c56cf8221109d4cc23558dbf
Author: Frédéric Giquel <frederic.giquel@laposte.net>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Fix #9: fix showing doc while quickly browsing candidates
This fixes a problem pointed out by
Frédéric Giquel <frederic.giquel@laposte.net>.
---
corfu-doc.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index 87036ebad7..aa9b0c83f1 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -340,9 +340,10 @@ FWIDTH and FHEIGHT."
(setq corfu-doc--cf-frame-edges nil)
(setq corfu-doc--window nil)))
-(defun corfu-doc--show ()
+(defun corfu-doc--show (&optional candidate-index)
(when (and (and (fboundp 'corfu-mode) corfu-mode)
- (frame-visible-p corfu--frame))
+ (frame-visible-p corfu--frame)
+ (equal candidate-index corfu--index))
(when-let ((candidate (corfu-doc--get-candidate))
(cf-frame-edges (frame-edges corfu--frame 'inner)))
(if (and (string= candidate corfu-doc--candidate)
@@ -423,7 +424,7 @@ FWIDTH and FHEIGHT."
(corfu-doc--hide)))))
(when (and corfu-doc-mode corfu-doc-auto)
(setq corfu-doc--timer
- (run-with-timer corfu-doc-delay nil #'corfu-doc--show))))
+ (run-with-timer corfu-doc-delay nil #'corfu-doc--show
corfu--index))))
(defun corfu-doc--cleanup ()
(advice-remove 'corfu--popup-hide #'corfu-doc--cleanup)
- [elpa] branch externals/corfu-doc created (now da93136780), ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 11b9f0fefa 18/95: Add an option to resize the corfu doc frame automatically, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d611165b7d 42/95: Reduce the popup height to avoid exceeding the display, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc c14d42e5e2 55/95: Version 0.4.3, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc c968530f74 50/95: Fix #9: fix showing doc while quickly browsing candidates,
ELPA Syncer <=
- [elpa] externals/corfu-doc e9562c3936 48/95: Update commentary, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d857f012ad 33/95: Reduce doc frame flickering when the delay is very low, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 45853ecb53 24/95: Version 0.1.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc dcc481a5d0 58/95: Document display the doc frame within the parent frame, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc e1c79e8ffc 27/95: Version 0.1.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 1fd578caa0 53/95: Fix link, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d2abf185e6 75/95: Rename corfu-doc--popup-transit to corfu-doc--popup-transition, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 07d389a0ab 74/95: Make candidates popup and doc popup share the border, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 832b49e2a1 83/95: Remove :safe args, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc be90c96079 84/95: Merge functions to get the documentation of the candidate, ELPA Syncer, 2022/07/19