emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 33b779a: Resurrect highlighting of repeated words b


From: Eli Zaretskii
Subject: [Emacs-diffs] master 33b779a: Resurrect highlighting of repeated words by Flyspell Mode
Date: Wed, 29 Jul 2015 17:53:17 +0000

branch: master
commit 33b779a11fb6785944383aeeae44f77cb580ee37
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Resurrect highlighting of repeated words by Flyspell Mode
    
    * lisp/textmodes/flyspell.el (flyspell-word): Leave some non-word
    characters between point and the doublon candidate, so that
    flyspell-word-search-backward finds it.  (Bug#21157)
---
 lisp/textmodes/flyspell.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 2329f29..e074918 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1119,7 +1119,8 @@ misspelling and skips redundant spell-checking step."
                   (let* ((bound
                           (- start
                              (- end start)
-                             (- (skip-chars-backward " \t\n\f"))))
+                             (- (save-excursion
+                                   (skip-chars-backward " \t\n\f")))))
                          (p (when (>= bound (point-min))
                               (flyspell-word-search-backward word bound t))))
                     (and p (/= p start)))))



reply via email to

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