[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/typo dde7825cc0 06/18: Summary: Check functionp before
From: |
ELPA Syncer |
Subject: |
[elpa] externals/typo dde7825cc0 06/18: Summary: Check functionp before listp |
Date: |
Sun, 26 Mar 2023 08:01:31 -0400 (EDT) |
branch: externals/typo
commit dde7825cc0c687f9271d545740920463f85624e7
Author: Philip Kaludercic <philip.kaludercic@fau.de>
Commit: Philip Kaludercic <philip.kaludercic@fau.de>
Summary: Check functionp before listp
This is necessary to avoid confusing a (closure ...) for a list.
---
typo.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/typo.el b/typo.el
index a69eede300..3407b2d232 100644
--- a/typo.el
+++ b/typo.el
@@ -4,7 +4,7 @@
;; Author: Philip Kaludercic <philip.kaludercic@fau.de>
;; URL: https://wwwcip.cs.fau.de/~oj14ozun/src+etc/typo.el
-;; Version: $Id: typo.el,v 1.4 2023/01/15 12:48:20 oj14ozun Exp oj14ozun $
+;; Version: $Id: typo.el,v 1.5 2023/01/15 12:49:56 oj14ozun Exp oj14ozun $
;; Package-Requires: ((emacs "27.1"))
;; Package-Version: 1
;; Keywords: convenience
@@ -68,6 +68,8 @@ returned. The variable `typo-level' specifies how many
single-letter typos are searched."
(let (new-words)
(cond
+ ((functionp collection)
+ (typo-edits word (funcall collection "" pred t) pred))
((and (listp collection) (consp (car collection))) ;alist
(dolist (entry collection new-words)
(let ((key (car entry)))
@@ -93,9 +95,7 @@ single-letter typos are searched."
(when (typo--test word atom)
(push atom new-words)))
collection)
- new-words)
- ((functionp collection)
- (typo-edits word (funcall collection "" pred t) pred)))))
+ new-words))))
;;;###autoload
(defun typo-all-completions (string collection pred _point)
- [elpa] branch externals/typo created (now 281c9049c1), ELPA Syncer, 2023/03/26
- [elpa] externals/typo 88e9e7cd47 05/18: Summary: Document PRED in 'typo-{all, try}-completion', ELPA Syncer, 2023/03/26
- [elpa] externals/typo a1c54f44e5 07/18: Summary: Allow for 'typo-level' to be a function, ELPA Syncer, 2023/03/26
- [elpa] externals/typo 5be4704665 09/18: Update headers for Sourcehut, ELPA Syncer, 2023/03/26
- [elpa] externals/typo c0283a403d 08/18: Summary: Set 'typo-level' to 'sqrt' by default, ELPA Syncer, 2023/03/26
- [elpa] externals/typo dde7825cc0 06/18: Summary: Check functionp before listp,
ELPA Syncer <=
- [elpa] externals/typo db35f44b9a 01/18: Initial revision, ELPA Syncer, 2023/03/26
- [elpa] externals/typo e259ccabfb 15/18: Add a .gitignore, ELPA Syncer, 2023/03/26
- [elpa] externals/typo 281c9049c1 18/18: Bump version to 1.0.1 for GNU ELPA, ELPA Syncer, 2023/03/26
- [elpa] externals/typo 6c5e695ec2 13/18: Add licensing information, ELPA Syncer, 2023/03/26
- [elpa] externals/typo ffcd6d1d52 16/18: Add more links to the introductory README paragraph, ELPA Syncer, 2023/03/26
- [elpa] externals/typo ecec5009b5 10/18: Add user option 'typo-support-all-completions', ELPA Syncer, 2023/03/26
- [elpa] externals/typo f68cc15541 04/18: Summary: Add a "Package-Requires" header, ELPA Syncer, 2023/03/26
- [elpa] externals/typo e1002d78ab 02/18: Summary: Honor predicate when the collection is a function, ELPA Syncer, 2023/03/26
- [elpa] externals/typo 1a93ca65dd 12/18: Add a basic README file, ELPA Syncer, 2023/03/26
- [elpa] externals/typo e38daaf6cd 03/18: Summary: Lower 'typo-level' to 8, ELPA Syncer, 2023/03/26