[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu ce64f4bc4d 51/86: Cleanup: remove arguments that
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu ce64f4bc4d 51/86: Cleanup: remove arguments that are always fixed |
Date: |
Thu, 7 Jul 2022 12:03:43 -0400 (EDT) |
branch: elpa/spell-fu
commit ce64f4bc4d6283a8acd55565f1a18f5bf7ac9ace
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: remove arguments that are always fixed
---
spell-fu.el | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/spell-fu.el b/spell-fu.el
index 93986cac3d..c9719fefd3 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -578,21 +578,18 @@ Argument POINT-END the end position of WORD."
;; to ensure there no chance of the points being in the middle of a word.
;;
-(defun spell-fu--check-faces-at-point (pos faces-include faces-exclude)
- "Check if the position POS has faces that match the include/exclude
arguments.
-
-Argument FACES-INCLUDE faces to check POS includes or ignored when nil.
-Argument FACES-EXCLUDE faces to check POS excludes or ignored when nil."
+(defun spell-fu--check-faces-at-point (pos)
+ "Check if the position POS has faces that match the include/exclude
arguments."
(let
(
- (result (null faces-include))
+ (result (null spell-fu-faces-include))
(faces-at-pos (spell-fu--faces-at-point pos))
(face nil))
(while (setq face (pop faces-at-pos))
- (when (memq face faces-exclude)
+ (when (memq face spell-fu-faces-exclude)
(setq faces-at-pos nil)
(setq result nil))
- (when (and (null result) (memq face faces-include))
+ (when (and (null result) (memq face spell-fu-faces-include))
(setq result t)))
result))
@@ -610,12 +607,7 @@ Argument FACES-EXCLUDE faces to check POS excludes or
ignored when nil."
(let ((point-end-iter (spell-fu--next-faces-prop-change
point-start point-end)))
;; No need to check faces of each word
;; as face-changes are being stepped over.
- (when
- (spell-fu--check-faces-at-point
- point-start
- spell-fu-faces-include
- spell-fu-faces-exclude)
-
+ (when (spell-fu--check-faces-at-point point-start)
;; Use narrowing so the regex correctly handles boundaries
;; that happen to fall on face changes.
(narrow-to-region point-start point-end-iter)
- [nongnu] elpa/spell-fu 3898e6f591 04/86: Cleanup: remove use of exception handling, (continued)
- [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
- [nongnu] elpa/spell-fu 3f4fc34204 32/86: Add 'spell-fu-buffer' utility, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu ddad489f2c 43/86: Adds affix dict support via aspell expand cmd, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu ce64f4bc4d 51/86: Cleanup: remove arguments that are always fixed,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 1b765f8029 58/86: Cleanup: replace setq with let binding, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1159eeec13 63/86: Fix including trailing single-quote in the word, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 32fcbd9e8e 68/86: Initial changes for multiple dictionaries, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1f3e5b8f05 72/86: readme: Fix typos, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 2f2fd6de00 83/86: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 00b75e5741 25/86: Cleanup: docstring, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 1bc18879b6 27/86: Add license file, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu d0700095ea 28/86: Add header to cache loading & error checking for cache content, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu f6c849f860 30/86: Fix disabling spell-fu when used without a timer, ELPA Syncer, 2022/07/07
- [nongnu] elpa/spell-fu 502d523b46 31/86: Fix unintended modification of the standard syntax table, ELPA Syncer, 2022/07/07