summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorAgustín Martín <agustin.martin@hispalinux.es>2014-01-14 11:50:28 +0100
committerAgustín Martín <agustin.martin@hispalinux.es>2014-01-14 11:50:28 +0100
commitc6a0b8eb25edd26ea22a3f9a649f2f6af999ad09 (patch)
treed9d9a31a3e2e8e29276661c7736c0e0433663247 /lisp/textmodes
parent02bf443d2ea21189dc0e8ac0bb741db9fa8fc365 (diff)
downloademacs-c6a0b8eb25edd26ea22a3f9a649f2f6af999ad09.tar.gz
ispell.el (ispell-region): Reset `in-comment' for new line instead of `add-coment' (bug#13577).
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el3
1 files changed, 2 insertions, 1 deletions
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)