]> git.eshelyaron.com Git - emacs.git/commitdiff
* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.
authorChong Yidong <cyd@gnu.org>
Sat, 29 Oct 2011 04:37:29 +0000 (12:37 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 29 Oct 2011 04:37:29 +0000 (12:37 +0800)
Fixes: debbugs:7904
lisp/ChangeLog
lisp/textmodes/flyspell.el

index d2f1ee6d87fdf3d7def9ede246dce2b5229f83da..340ca33231f9b5337f310ecd95fda2f1b1fb75a5 100644 (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>
index 4a57d00d702bde5d5e14636c5650be02727cea25..a5099311307f6437af0974598d62f78bc7322d3a 100644 (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)