[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/typo ecec5009b5 10/18: Add user option 'typo-support-al
From: |
ELPA Syncer |
Subject: |
[elpa] externals/typo ecec5009b5 10/18: Add user option 'typo-support-all-completions' |
Date: |
Sun, 26 Mar 2023 08:01:31 -0400 (EDT) |
branch: externals/typo
commit ecec5009b59c55c96ea74897812bb424fe100c87
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Add user option 'typo-support-all-completions'
---
typo.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/typo.el b/typo.el
index 4a74f6fcd7..c78a1f3cc3 100644
--- a/typo.el
+++ b/typo.el
@@ -57,6 +57,13 @@ indicating the maximal number of permitted typos."
"Number of characters a word may expand."
:type 'natnum)
+(defcustom typo-support-all-completions t
+ "Non-nil means enable support for `all-completions'.
+When enabled typo-based completion will also be applied to the
+*Completions* buffer (or analogous concepts in other completion
+frameworks)."
+ :type 'boolean)
+
(define-inline typo--test (word key)
(inline-letevals (word key)
(inline-quote
@@ -115,7 +122,8 @@ single-letter typos are searched."
(defun typo-all-completions (string collection pred _point)
"Generate all versions of the STRING using COLLECTION.
COLLECTION and PRED are as defined in `all-completions'."
- (typo-edits string collection pred))
+ (and typo-support-all-completions
+ (typo-edits string collection pred)))
;;;###autoload
(defun typo-try-completion (string collection pred _point &optional _metadata)
- [elpa] externals/typo 88e9e7cd47 05/18: Summary: Document PRED in 'typo-{all, try}-completion', (continued)
- [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, 2023/03/26
- [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 <=
- [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
- [elpa] externals/typo 2e1c408708 14/18: Add a .dir-locals.el, ELPA Syncer, 2023/03/26
- [elpa] externals/typo b41a366511 17/18: Assign copyright to the FSF, ELPA Syncer, 2023/03/26
- [elpa] externals/typo 933daae631 11/18: Add "Maintainer" header, ELPA Syncer, 2023/03/26