[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu ba858df 08/11: Guard against dabbrev error if the
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu ba858df 08/11: Guard against dabbrev error if there are no matches |
Date: |
Tue, 27 Apr 2021 11:39:07 -0400 (EDT) |
branch: externals/corfu
commit ba858df5e38fa904a32de768ff048efd93dde7da
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Guard against dabbrev error if there are no matches
---
corfu.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/corfu.el b/corfu.el
index 59f9cd4..464cae1 100644
--- a/corfu.el
+++ b/corfu.el
@@ -285,7 +285,12 @@ If `line-spacing/=nil' or in text-mode, the background
color is used instead.")
(lambda (pattern cands)
(setq hl (lambda (x) (orderless-highlight-matches pattern x)))
cands)))
- (cons (apply #'completion-all-completions args) hl)))
+ ;; XXX dabbrev throws error "No dynamic expansion ... found".
+ ;; TODO report as bug? Are completion tables supposed to throw errors?
+ (cons (condition-case nil
+ (apply #'completion-all-completions args)
+ (t nil))
+ hl)))
(defun corfu--sort-predicate (x y)
"Sorting predicate which compares X and Y."
- [elpa] externals/corfu 8b4d5d8 02/11: Simplify corfu--restore-on-next-command, (continued)
- [elpa] externals/corfu 8b4d5d8 02/11: Simplify corfu--restore-on-next-command, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 6dfa254 01/11: Fix corfu-show-location, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 6845fb0 03/11: Simplify corfu--pre-command-hook, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu a04dfe5 04/11: Add `corfu-confirm`, more tolerance for typos (Fix #14), Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu fe8674a 05/11: Ensure that the corfu popup works with `dabbrev-completion`, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 1db9916 11/11: Show "No match" message if no candidates are found, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 5641e3b 06/11: Update readme, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 0b87702 07/11: Add `corfu-excluded-modes`, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu 9dc4759 09/11: Exit conditions: Minor cleanup, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu ed3a26b 10/11: Better guarding against errors during candidate generation, Protesilaos Stavrou, 2021/04/27
- [elpa] externals/corfu ba858df 08/11: Guard against dabbrev error if there are no matches,
Protesilaos Stavrou <=