[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx b340205929 143/182: Tidy up docstrings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx b340205929 143/182: Tidy up docstrings |
Date: |
Tue, 13 Dec 2022 03:59:38 -0500 (EST) |
branch: elpa/flx
commit b3402059291913094b8d6c34f23e333410714e01
Author: PythonNut <PythonNut@users.noreply.github.com>
Commit: PythonNut <PythonNut@users.noreply.github.com>
Tidy up docstrings
---
flx.el | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/flx.el b/flx.el
index 9c2a9f8473..97985553ec 100644
--- a/flx.el
+++ b/flx.el
@@ -79,9 +79,9 @@
(= char (upcase char))))
(defsubst flx-boundary-p (last-char char)
- "Check is LAST-CHAR is the end of a word and CHAR the start of the next.
+ "Check if LAST-CHAR is the end of a word and CHAR the start of the next.
-The function is camel-case aware."
+This function is camel-case aware."
(or (null last-char)
(and (not (flx-capital-p last-char))
(flx-capital-p char))
@@ -89,9 +89,8 @@ The function is camel-case aware."
(flx-word-p char))))
(defsubst flx-inc-vec (vec &optional inc beg end)
- "increment each element of vectory by INC(default=1)
-from BEG (inclusive) to end (not inclusive).
-"
+ "Increment each element of vectory by INC(default=1)
+from BEG (inclusive) to END (not inclusive)."
(or inc
(setq inc 1))
(or beg
@@ -104,8 +103,8 @@ from BEG (inclusive) to end (not inclusive).
vec)
(defun flx-get-hash-for-string (str heatmap-func)
- "Return hash-table for string where keys are characters value
- is a sorted list of indexes for character occurrences."
+ "Return hash-table for string where keys are characters.
+Value is a sorted list of indexes for character occurrences."
(let* ((res (make-hash-table :test 'eq :size 32))
(str-len (length str))
down-char)
@@ -124,7 +123,7 @@ from BEG (inclusive) to end (not inclusive).
;; So we store one fixnum per character. Is this too memory inefficient?
(defun flx-get-heatmap-str (str &optional group-separator)
- "Generate heat map vector of string.
+ "Generate the heatmap vector of string.
See documentation for logic."
(let* ((str-len (length str))
@@ -221,7 +220,7 @@ See documentation for logic."
(defsubst flx-bigger-sublist (sorted-list val)
- "return sublist bigger than VAL from sorted SORTED-LIST
+ "Return sublist bigger than VAL from sorted SORTED-LIST
if VAL is nil, return entire list."
(if val
@@ -259,11 +258,11 @@ e.g. (\"aab\" \"ab\") returns
(mapcar 'list indexes))))
(defun flx-make-filename-cache ()
- "Return cache hashtable appropraite for storeing filenames."
+ "Return cache hashtable appropraite for storing filenames."
(flx-make-string-cache 'flx-get-heatmap-file))
(defun flx-make-string-cache (&optional heat-func)
- "Return cache hashtable appropraite for storeing strings."
+ "Return cache hashtable appropraite for storing strings."
(let ((hash (make-hash-table :test 'equal
:size 4096)))
(puthash 'heatmap-func (or heat-func 'flx-get-heatmap-str) hash)
@@ -285,7 +284,7 @@ e.g. (\"aab\" \"ab\") returns
(defun flx-score (str query &optional cache)
- "return best score matching QUERY against STR"
+ "Return best score matching QUERY against STR"
(unless (or (zerop (length query))
(zerop (length str)))
(let* ((info-hash (flx-process-cache str cache))
- [nongnu] elpa/flx d633b6e14a 157/182: Set custom type of options, (continued)
- [nongnu] elpa/flx d633b6e14a 157/182: Set custom type of options, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9c5cb5de02 158/182: Merge pull request #95 from emacsjanitors/silencio, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7017d8416b 163/182: Add LICENSE file., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e5c0680ebf 165/182: Add badges to README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f589b237b8 172/182: Add a proper library commentary, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a62e3dd974 176/182: Add missing license statements, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 5c23a9e87d 180/182: Merge pull request #114 from tarsiiformes/silencio, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 9076fb87af 091/182: Add commentary about using uppercase., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 2b54391aa6 119/182: Fix helm demo with `.` in query., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c3229e0075 134/182: cask install into project root, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b340205929 143/182: Tidy up docstrings,
ELPA Syncer <=
- [nongnu] elpa/flx 813e56a014 115/182: Stabilise search results when scores are equal., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx e2ed4ea0a7 113/182: Make flex search match case-folding behaviour of flx-ido., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 10db531369 120/182: Remove spurious space., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 3f567a4741 126/182: back out clojure style `<`, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 72c9ea0045 082/182: Fix a byte compilation warning, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 502e01673a 106/182: Bump version to 0.3, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx b96f2c3e1d 152/182: Merge pull request #80 from tarsius/silencio, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 82d647a5c6 159/182: Fix incorrect markup in the readme, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 836d5917a3 161/182: Fix typos, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 17f5c9cb2a 162/182: Merge pull request #102 from tarsiiformes/typos, ELPA Syncer, 2022/12/13