From: Agustín Martín Date: Tue, 14 Jan 2014 10:50:28 +0000 (+0100) Subject: ispell.el (ispell-region): Reset `in-comment' for new line instead of `add-coment... X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~381 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c6a0b8eb25edd26ea22a3f9a649f2f6af999ad09;p=emacs.git ispell.el (ispell-region): Reset `in-comment' for new line instead of `add-coment' (bug#13577). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 243078ebad4..fc2a295f8c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-01-14 Agustín Martín Domingo + + * ispell.el (ispell-region): Reset `in-comment' for new line + instead of wrongly reset `add-coment' (bug#13577). + 2014-01-14 Daiki Ueno * epa-file.el (epa-file-write-region): Encode the region according diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index cdc8448d2d1..050938752ca 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -3305,7 +3305,8 @@ ispell-region: Search for first region to skip after (ispell-begin-skip-region-r ispell-start ispell-end (point-at-eol) in-comment add-comment string) (if add-comment ; account for comment chars added (setq ispell-start (- ispell-start (length add-comment)) - add-comment nil)) + ;; Reset `in-comment' (and indirectly `add-comment') for new line + in-comment nil)) (setq ispell-end (point)) ; "end" tracks region retrieved. (if string ; there is something to spell check! ;; (special start end)