diff options
| author | Chong Yidong | 2010-02-16 09:23:44 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-02-16 09:23:44 -0500 |
| commit | 05bbe066a68442dca234abb2c2f479bb0c2a293f (patch) | |
| tree | 5e2b415f65a498aa69e2b9bf663437abf9dc8112 | |
| parent | f1e0d763624b7aaecde07611cbe33d189901665b (diff) | |
| download | emacs-05bbe066a68442dca234abb2c2f479bb0c2a293f.tar.gz emacs-05bbe066a68442dca234abb2c2f479bb0c2a293f.zip | |
* textmodes/flyspell.el (flyspell-word): Obey the offset specified
by ispell-parse-output (Bug#5575).
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0dbc97c0df8..92ae206d104 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-02-16 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * textmodes/flyspell.el (flyspell-word): Obey the offset specified | ||
| 4 | by ispell-parse-output (Bug#5575). | ||
| 5 | |||
| 1 | 2010-02-16 Kenichi Handa <handa@m17n.org> | 6 | 2010-02-16 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/ja-dic-cnv.el (iso-2022-7bit-short): Delete it. | 8 | * international/ja-dic-cnv.el (iso-2022-7bit-short): Delete it. |
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 |