[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jit-spell 3985db5f77 1/3: Ignore errors in Flyspell pre
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jit-spell 3985db5f77 1/3: Ignore errors in Flyspell predicate |
Date: |
Tue, 7 Mar 2023 15:57:58 -0500 (EST) |
branch: externals/jit-spell
commit 3985db5f771f1f945f6378d4a6b90fcfd7671640
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Ignore errors in Flyspell predicate
---
jit-spell.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/jit-spell.el b/jit-spell.el
index ab7a6d99c0..fc32edff14 100644
--- a/jit-spell.el
+++ b/jit-spell.el
@@ -524,9 +524,10 @@ again moves to the next misspelling."
(when-let ((pred (or (bound-and-true-p
flyspell-generic-check-word-predicate)
(get major-mode 'flyspell-mode-predicate))))
(add-function :after-until (local 'jit-spell--ignored-p)
- (lambda (_start end) (save-excursion
- (goto-char end)
- (not (funcall pred))))))
+ (lambda (_start end) (ignore-errors
+ (save-excursion
+ (goto-char end)
+ (not (funcall pred)))))))
(when (if (eq 'auto jit-spell-use-apostrophe-hack)
ispell-really-hunspell
jit-spell-use-apostrophe-hack)