1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 19:25:37 -08:00

* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.

Fixes: debbugs:7904
This commit is contained in:
Chong Yidong 2011-10-29 12:37:29 +08:00
parent 38bb2ca88d
commit 5d2ece3cd2
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2011-10-29 Chong Yidong <cyd@gnu.org>
* textmodes/flyspell.el (flyspell-word): Fix char offset for
forged Ispell output (Bug#7904).
* emacs-lisp/package.el (package-refresh-contents): Add autoload.
2011-10-28 Stefan Monnier <monnier@iro.umontreal.ca>

View file

@ -1121,7 +1121,7 @@ misspelling and skips redundant spell-checking step."
(setq poss (ispell-parse-output (car ispell-filter)))))
;; Else, this was a known misspelling to begin with, and
;; we should forge an ispell return value.
(setq poss (list word 0 '() '())))
(setq poss (list word 1 nil nil)))
(let ((res (cond ((eq poss t)
;; correct
(setq flyspell-word-cache-result t)