emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/spell-fu 1159eeec13 63/86: Fix including trailing single-q


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu 1159eeec13 63/86: Fix including trailing single-quote in the word
Date: Thu, 7 Jul 2022 12:03:44 -0400 (EDT)

branch: elpa/spell-fu
commit 1159eeec13acbba5ecfc24aa8f6aa620c1274d17
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix including trailing single-quote in the word
    
    This made single quoted strings detect "'word'" as "word'"
    which typically caused the it to show as misspelled.
    
    Now it's detected as "word".
---
 spell-fu.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/spell-fu.el b/spell-fu.el
index 9f3884a941..1f5de55ca3 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -113,7 +113,9 @@ check this buffer.")
 ;; - don't''join <= don't connect multiple apostrophes.
 ;;   ^^^^^  ^^^^
 ;;
-(defvar-local spell-fu-word-regexp 
"\\b\\([[:alpha:]][[:alpha:]]*\\('[[:alpha:]]*\\)?\\)\\b"
+;; - word' <= don't count the final apostrophe.
+;;   ^^^^
+(defvar-local spell-fu-word-regexp 
"\\b\\([[:alpha:]]+\\(['\u2019][[:alpha:]]+\\)?\\)\\b"
   "Regex used to scan for words to check (used by `spell-fu-check-range').")
 
 (defvar-local spell-fu-faces-include nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]