[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx c75f14fbc2 104/182: Fix docstring bugs from checkdoc.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx c75f14fbc2 104/182: Fix docstring bugs from checkdoc. |
Date: |
Tue, 13 Dec 2022 03:59:34 -0500 (EST) |
branch: elpa/flx
commit c75f14fbc2a63a9c3dba066194f9d7d756ca4a26
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
Fix docstring bugs from checkdoc.
---
flx-ido.el | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/flx-ido.el b/flx-ido.el
index 3db624bb34..088e61e02c 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -63,7 +63,10 @@
(defvar ido-cur-item))
(defcustom flx-ido-threshold 500
- "flx will not kick in until collection is filtered below this size with
\"flex\"."
+ "Threshold for activating flx algorithm.
+
+Flx will not kick in until collection is filtered below this
+size with idos' default \"flex\" algorithm."
:group 'ido)
@@ -94,11 +97,13 @@ non-nil."
(defvar flx-ido-debug nil)
(defun flx-ido-debug (&rest args)
+ "Debugging util function.
+ARGS passed to message."
(when flx-ido-debug
(apply 'message args)))
(defun flx-ido-is-prefix-match (str prefix)
- "Return t if PREFIX is PREFIX of STR"
+ "Return t if STR starts with PREFIX."
(when (and str prefix)
(let ((length (length prefix)))
(eq t (compare-strings prefix 0 length
@@ -108,7 +113,7 @@ non-nil."
(defun flx-ido-narrowed (query items)
"Get the value from `flx-ido-narrowed-matches-hash' with the
- longest prefix match."
+longest prefix match."
(flx-ido-debug "flx-ido-narrowed saw %s items" (length items))
(if (zerop (length query))
(list t (nreverse items))
@@ -135,10 +140,13 @@ non-nil."
(list exact res))))
(defun flx-ido-undecorate (strings)
+ "Remove decorations from STRINGS."
(flx-ido-decorate strings t))
(defun flx-ido-decorate (things &optional clear)
+ "Add ido text properties to THINGS.
+If CLEAR is specified, clear them instead."
(if flx-ido-use-faces
(let ((decorate-count (min ido-max-prospects
(length things))))
@@ -156,6 +164,7 @@ non-nil."
(mapcar 'car things))))
(defun flx-ido-match-internal (query items)
+ "Match QUERY against ITEMS using flx scores."
(flx-ido-debug "flx-ido-match-internal saw %s items" (length items))
(let* ((matches (cl-loop for item in items
for string = (if (consp item) (car item) item)
@@ -170,9 +179,11 @@ non-nil."
t))))
(defun flx-ido-key-for-query (query)
+ "Canonicalize QUERY to form key."
(concat ido-current-directory query))
(defun flx-ido-cache (query items)
+ "Possibly insert items into cache."
(if (memq ido-cur-item '(file dir))
items
(puthash (flx-ido-key-for-query query) items
flx-ido-narrowed-matches-hash)))
- [nongnu] elpa/flx 9440288782 086/182: Refactor to make prefix match clear., (continued)
- [nongnu] elpa/flx 9440288782 086/182: Refactor to make prefix match clear., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a1fef07104 087/182: Fix C-k to kill buffer at head., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 12589211c6 088/182: Implement case-fold searching, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 80bb88c32f 092/182: Clean test .elcs but never compile them., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5591055c33 093/182: Recommend enabling ido-flex., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 48ebd6c857 094/182: Make prefix-matchine one way., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 1f46d67762 096/182: Update big list experiment., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx df036210c6 098/182: Switch to 24.4 delete dup runs algorithm., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3fdaea3ec7 097/182: Respecting flx-ido-threshhold., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3d631fdd38 101/182: Improve behaviour backspacing flx -> flex., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c75f14fbc2 104/182: Fix docstring bugs from checkdoc.,
ELPA Syncer <=
- [nongnu] elpa/flx 6797797426 105/182: Update status in README.md., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a154058007 108/182: Use ido's name canonicalization., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx acd4334893 109/182: Increase threshold to 2000., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a59c08283d 110/182: Simplify caching, implement own flex., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3032920883 117/182: Fix search results changing positions as you type., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 46a1b29482 118/182: Merge pull request #62 from bsuh/fix61, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5fe7f8a94a 121/182: Add algorithmic optimizations, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b9c2d42b67 122/182: Remove deprecated tests, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 41842ff7b3 123/182: Small performance tweaks, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c8a17f199 127/182: cadar -> cl-cadar, ELPA Syncer, 2022/12/13