aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorChong Yidong2010-02-16 09:23:44 -0500
committerChong Yidong2010-02-16 09:23:44 -0500
commit05bbe066a68442dca234abb2c2f479bb0c2a293f (patch)
tree5e2b415f65a498aa69e2b9bf663437abf9dc8112 /lisp/textmodes
parentf1e0d763624b7aaecde07611cbe33d189901665b (diff)
downloademacs-05bbe066a68442dca234abb2c2f479bb0c2a293f.tar.gz
emacs-05bbe066a68442dca234abb2c2f479bb0c2a293f.zip
* textmodes/flyspell.el (flyspell-word): Obey the offset specified
by ispell-parse-output (Bug#5575).
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/flyspell.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 612f83123ba..ee7a52a1093 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1155,10 +1155,15 @@ than preceding) word when the cursor is not over a word."
1155 nil) 1155 nil)
1156 (t 1156 (t
1157 (setq flyspell-word-cache-result nil) 1157 (setq flyspell-word-cache-result nil)
1158 ;; incorrect highlight the location 1158 ;; Highlight the location as incorrect,
1159 ;; including offset specified in POSS.
1159 (if flyspell-highlight-flag 1160 (if flyspell-highlight-flag
1160 (flyspell-highlight-incorrect-region 1161 (flyspell-highlight-incorrect-region
1161 start end poss) 1162 (if (and (consp poss)
1163 (integerp (nth 1 poss)))
1164 (+ start (nth 1 poss) -1)
1165 start)
1166 end poss)
1162 (flyspell-notify-misspell word poss)) 1167 (flyspell-notify-misspell word poss))
1163 nil)))) 1168 nil))))
1164 ;; return to original location 1169 ;; return to original location