[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/cape 6ff72e5253 067/146: Unify cape-ispell and cape-isp
From: |
ELPA Syncer |
Subject: |
[elpa] externals/cape 6ff72e5253 067/146: Unify cape-ispell and cape-ispell-capf |
Date: |
Sun, 9 Jan 2022 20:57:43 -0500 (EST) |
branch: externals/cape
commit 6ff72e5253eb9e7fe4fbb61d969d1c1e488e86e8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Unify cape-ispell and cape-ispell-capf
---
cape.el | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/cape.el b/cape.el
index 9945f3b168..005c90f58b 100644
--- a/cape.el
+++ b/cape.el
@@ -472,21 +472,17 @@ SORT should be nil to disable sorting."
:valid 'substring :category 'cape-ispell))
;;;###autoload
-(defun cape-ispell-capf ()
- "Ispell completion-at-point-function."
- (when-let (bounds (bounds-of-thing-at-point 'word))
- `(,(car bounds) ,(cdr bounds)
- ,(cape--ispell-table bounds)
- :exclusive no
- ,@cape--ispell-properties)))
-
-;;;###autoload
-(defun cape-ispell ()
- "Complete with Ispell at point."
- (interactive)
- (let ((bounds (or (bounds-of-thing-at-point 'word) (cons (point) (point)))))
- (cape--complete (car bounds) (cdr bounds) (cape--ispell-table bounds)
- cape--ispell-properties)))
+(defun cape-ispell (&optional interactive)
+ "Complete with Ispell at point.
+If INTERACTIVE is nil the function acts like a capf."
+ (interactive (list t))
+ (if interactive
+ (let ((bounds (or (bounds-of-thing-at-point 'word) (cons (point)
(point)))))
+ (cape--complete (car bounds) (cdr bounds) (cape--ispell-table bounds)
+ cape--ispell-properties))
+ (when-let (bounds (bounds-of-thing-at-point 'word))
+ `(,(car bounds) ,(cdr bounds) ,(cape--ispell-table bounds)
+ :exclusive no ,@cape--ispell-properties))))
(defvar cape--dict-properties
(list :annotation-function (lambda (_) " Dict")
- [elpa] externals/cape 52c86daf8c 062/146: Version 0.2, (continued)
- [elpa] externals/cape 52c86daf8c 062/146: Version 0.2, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 8643892a6d 066/146: Minor refactoring, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 0fdbf4f5c3 073/146: cape-line: Implement capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 16ef21309b 076/146: Improve cape-dabbrev, ELPA Syncer, 2022/01/09
- [elpa] externals/cape edb2be3b71 092/146: Version 0.3, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 08877dbf75 096/146: Improve comments, ELPA Syncer, 2022/01/09
- [elpa] externals/cape b5485b8878 031/146: cape-ispell-capf: Compute candidates later, ELPA Syncer, 2022/01/09
- [elpa] externals/cape dc26e9f7ab 049/146: cape-dict-capf: Load the dict lazily, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 2bcdd7bfe5 052/146: cape-file-capf: Require directory as prefix (Fix #9), ELPA Syncer, 2022/01/09
- [elpa] externals/cape 673b086dae 056/146: Annotate abbreviations with expansion, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 6ff72e5253 067/146: Unify cape-ispell and cape-ispell-capf,
ELPA Syncer <=
- [elpa] externals/cape d3e4d152ac 024/146: Add cape-symbol, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 8036636a0f 026/146: Add comment, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 9bd7bed258 029/146: cape-company-capf: Call the backend later in the completion process, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 67c3b75e2a 039/146: Refactor dabbrev, simplify, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 6e525cdfdd 040/146: Rework cape-company-to-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 6deb7d7a8b 044/146: Add docstrings, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 3ad6aa105e 045/146: cape-company-to-capf: Simplify, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 4a1f19af23 057/146: Fix super capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape 26401bfa6a 069/146: Unify cape-abbrev and cape-abbrev-capf, ELPA Syncer, 2022/01/09
- [elpa] externals/cape d265a03e7f 074/146: cape-dabbrev: Make interactive, ELPA Syncer, 2022/01/09