[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu 2590ee3002 80/86: Cleanup: remove cl-remove-if-no
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu 2590ee3002 80/86: Cleanup: remove cl-remove-if-not |
Date: |
Thu, 7 Jul 2022 12:03:45 -0400 (EDT) |
branch: elpa/spell-fu
commit 2590ee3002a97e794b0fd2dc06c44f762e4c464e
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: remove cl-remove-if-not
Prefer to avoid common-lisp API, stick to simple emacs lisp.
---
spell-fu.el | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/spell-fu.el b/spell-fu.el
index f95bc4546e..334254fa4e 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -206,23 +206,26 @@ Notes:
ACTION is 'remove or 'add. Returned candidates are dictionaries
which support the operation, and correspondingly do / do not
already contain WORD."
-
(let
(
(adding (eq action 'add))
(encoded-word (encode-coding-string (downcase word) 'utf-8)))
- (cl-remove-if-not
- (lambda (dict)
- (and
- ;; Operation supported?
- (get
- dict
- (if adding
- 'add-word
- 'remove-word))
- ;; Word is / is not in dictionary?
- (eq adding (null (gethash encoded-word (symbol-value dict))))))
- spell-fu-dictionaries)))
+ (delq
+ nil
+ (mapcar
+ (lambda (dict)
+ (and
+ ;; Operation supported?
+ (get
+ dict
+ (if adding
+ 'add-word
+ 'remove-word))
+ ;; Word is / is not in dictionary?
+ (eq adding (null (gethash encoded-word (symbol-value dict))))
+ ;; Result.
+ dict))
+ spell-fu-dictionaries))))
(defun spell-fu--read-dictionary (candidate-dicts prompt)
"Ask the user to select one dictionary from CANDIDATE-DICTS.
- [nongnu] elpa/spell-fu a7879fe9e7 59/86: Cleanup: over-wide docstrings, (continued)
- [nongnu] elpa/spell-fu a7879fe9e7 59/86: Cleanup: over-wide docstrings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu a2a0e3b786 60/86: Cleanup: remove redundant group properties, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 570ccd84ed 64/86: Fix spell-fu-goto-{next/prev}-error silently failing, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu b2da2874f3 67/86: Cleanup: use shorter variable names, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 00af362af3 71/86: Add multiple dictionary support, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 2ba65de269 74/86: Cleanup: include all arguments in doc-strings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 4782667d7b 76/86: Fail gracefully with a message when aspell can't be found, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 3a19836c69 78/86: Cleanup: use brief SPDX license, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1698c51740 79/86: Store a list of hashes instead of symbol lookups for each word, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 47d92c1989 84/86: Fix wrong function name for multiple languages example, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 2590ee3002 80/86: Cleanup: remove cl-remove-if-not,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 1299bfca2e 85/86: Merge pull request 'Fix wrong function name for multiple languages example' (#27) from kepi/emacs-spell-fu:master into master, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 907271a557 03/86: Cleanup: unnecessary 'let' nesting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 3898e6f591 04/86: Cleanup: remove use of exception handling, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu ae4504f14d 07/86: Fix using hard coded en_US dictionary, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu f2b7d58e87 08/86: Cleanup: correct comment, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1e6928f77d 05/86: Cleanup: add message for generating cache, some comments, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu bd76cb262e 15/86: Avoid 2x loops over the pending screen overlays, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 4f9732492c 01/86: Initial code., ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 6a7440044e 19/86: Cleanup: rename variables to make the assignment explicit, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 5915e0ae2a 24/86: Cleanup: use safer sharp-quoted function names, ELPA Syncer, 2022/07/07