[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/flx c7e8574da3 171/182: Shorten long lines
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/flx c7e8574da3 171/182: Shorten long lines |
Date: |
Tue, 13 Dec 2022 03:59:41 -0500 (EST) |
branch: elpa/flx
commit c7e8574da3a74670bebad9743f6ca6ec88844ab9
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Shorten long lines
---
flx.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/flx.el b/flx.el
index 9e3bc36fe8..a28202d88b 100644
--- a/flx.el
+++ b/flx.el
@@ -36,11 +36,11 @@
;;
;; Use defsubst instead of defun.
;;
-;; * Using bitmaps to check for matches worked out to be SLOWER than just
-;; scanning the string and using `flx-get-matches'.
+;; * Using bitmaps to check for matches worked out to be SLOWER than
+;; just scanning the string and using `flx-get-matches'.
;;
-;; * Consing causes GC, which can often slowdown Emacs more than the benefits
-;; of an optimization.
+;; * Consing causes GC, which can often slowdown Emacs more than the
+;; benefits of an optimization.
;;; Acknowledgments
@@ -62,7 +62,8 @@
:type '(repeat character)
:group 'flx)
-(defface flx-highlight-face '((t (:inherit font-lock-variable-name-face :bold
t :underline t)))
+(defface flx-highlight-face
+ '((t (:inherit font-lock-variable-name-face :bold t :underline t)))
"Face used by flx for highlighting flx match characters."
:group 'flx)
@@ -146,7 +147,8 @@ See documentation for logic."
;; gets penalized compared to "foo/ab".
(if (zerop group-word-count) nil last-char)))
(when (flx-boundary-p effective-last-char char)
- (setcdr (cdar groups-alist) (cons index (cl-cddar
groups-alist))))
+ (setcdr (cdar groups-alist)
+ (cons index (cl-cddar groups-alist))))
(when (and (not (flx-word-p last-char))
(flx-word-p char))
(cl-incf group-word-count)))
@@ -389,10 +391,12 @@ SCORE of nil means to clear the properties."
(dolist (char (cdr score))
(when (and last-char
(not (= (1+ last-char) char)))
- (put-text-property block-started (1+ last-char) 'face
'flx-highlight-face str)
+ (put-text-property block-started (1+ last-char)
+ 'face 'flx-highlight-face str)
(setq block-started char))
(setq last-char char))
- (put-text-property block-started (1+ last-char) 'face
'flx-highlight-face str)
+ (put-text-property block-started (1+ last-char)
+ 'face 'flx-highlight-face str)
(when add-score
(setq str (format "%s [%s]" str (car score)))))
(if (consp obj)
- [nongnu] elpa/flx 813e56a014 115/182: Stabilise search results when scores are equal., (continued)
- [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
- [nongnu] elpa/flx c7e8574da3 171/182: Shorten long lines,
ELPA Syncer <=
- [nongnu] elpa/flx 1be7b124a2 181/182: Merge pull request #110 from skangas/license-fixes, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 7b44a5abb2 182/182: Merge pull request #109 from skangas/bump-version, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx db1a328e41 145/182: Revert "enable lexical-binding", ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx f6cd01d759 146/182: Merge branch 'perf/dynamic-programming' into 0.6, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx a3d8aa0f9a 164/182: Remove unused and deprecated ‘cl’ library, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 572f5e6013 170/182: Prevent non-heading comments from being treated as such, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx c342eb02a9 179/182: Enforce use of spaces for indentation, ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx abd4fe8c2d 085/182: Improve flx-ido-narrowed-matches-hash doc., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 66e1788bd6 103/182: Rename variable in advice to not override original., ELPA Syncer, 2022/12/13
- [nongnu] elpa/flx 61e7db4922 111/182: Bump version to 0.5., ELPA Syncer, 2022/12/13