Commit 05bbe066 authored by Chong Yidong's avatar Chong Yidong
Browse files

* textmodes/flyspell.el (flyspell-word): Obey the offset specified

by ispell-parse-output (Bug#5575).
parent f1e0d763
2010-02-16 Chong Yidong <cyd@stupidchicken.com>
* textmodes/flyspell.el (flyspell-word): Obey the offset specified
by ispell-parse-output (Bug#5575).
2010-02-16 Kenichi Handa <handa@m17n.org>
* international/ja-dic-cnv.el (iso-2022-7bit-short): Delete it.
......
......@@ -1155,10 +1155,15 @@ than preceding) word when the cursor is not over a word."
nil)
(t
(setq flyspell-word-cache-result nil)
;; incorrect highlight the location
;; Highlight the location as incorrect,
;; including offset specified in POSS.
(if flyspell-highlight-flag
(flyspell-highlight-incorrect-region
start end poss)
(if (and (consp poss)
(integerp (nth 1 poss)))
(+ start (nth 1 poss) -1)
start)
end poss)
(flyspell-notify-misspell word poss))
nil))))
;; return to original location
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment