[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 5951abd 04/16: Reorder exit conditions
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu 5951abd 04/16: Reorder exit conditions |
Date: |
Wed, 28 Apr 2021 14:20:02 -0400 (EDT) |
branch: externals/corfu
commit 5951abd4c8ca070aea5e1e88bbcd18a1e7dd8bff
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Reorder exit conditions
---
corfu.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/corfu.el b/corfu.el
index e828207..8fd4514 100644
--- a/corfu.el
+++ b/corfu.el
@@ -465,22 +465,22 @@ Set to nil in order to disable confirmation."
initializing) ;; & Initializing,
first retrieval of candidates.
(minibuffer-message "No match") ;; => Show error message
nil)
- ((and (not corfu--candidates) ;; 2) There are no
candidates
- corfu-confirm) ;; & Confirmation is
enabled
- (corfu--popup beg (list corfu-confirm)) ;; => Show confirmation
popup
- t)
- ((and corfu--candidates ;; 3) There exist
candidates
+ ((and corfu--candidates ;; 2) There exist
candidates
(not (equal corfu--candidates (list str))) ;; & Not a sole exactly
matching candidate
(or (/= beg end) (corfu--keep-alive-p))) ;; & Input is non-empty
or keep-alive command
(corfu--show-candidates beg end str metadata) ;; => Show candidates
popup
t)
- ;; When after `completion-at-point/corfu-complete', no further completion
is possible and the
+ ;; 3) When after `completion-at-point/corfu-complete', no further
completion is possible and the
;; current string is a valid match, exit with status 'finished.
((and (memq this-command '(corfu-complete completion-at-point))
(not (stringp (try-completion str table pred)))
(test-completion str table pred))
(corfu--done str 'finished)
- nil))))
+ nil)
+ ((and (not corfu--candidates) ;; 4) There are no
candidates
+ corfu-confirm) ;; & Confirmation is
enabled
+ (corfu--popup beg (list corfu-confirm)) ;; => Show confirmation
popup
+ t))))
(defun corfu--pre-command-hook ()
"Insert selected candidate unless keep alive command."
- [elpa] externals/corfu updated (5d59adc -> a53a98a), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu fef8377 02/16: Add popup comment (See #10 and #15), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 5951abd 04/16: Reorder exit conditions,
Protesilaos Stavrou <=
- [elpa] externals/corfu 7155196 05/16: Simplify, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted properly, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9eb9ae6 08/16: Keep frame alive for performance, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e5dad66 09/16: Use internal border, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e4d66b6 10/16: Use spaces for border/bar instead of image, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu cdd215d 13/16: Ensure that frame buffer is set, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu a53a98a 16/16: Simplify face definitions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59949d3 03/16: Use child frames instead of overlays, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9aa922d 01/16: Use `vertical-motion` instead of `forward-line`, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location frame still works with child-frame popup, Protesilaos Stavrou, 2021/04/28