1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

* textmodes/fill.el (fill-region): Don't fill past the end.

Fixes: debbugs:6201
This commit is contained in:
Stefan Monnier 2010-05-18 23:51:55 -04:00
parent 29031d52fe
commit ab0c07c020
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-05-19 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> (tiny change)
* textmodes/fill.el (fill-region): Don't fill past the end (bug#6201).
2010-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
* subr.el (read-quoted-char): Resolve modifiers after key

View file

@ -1036,7 +1036,7 @@ space does not end a sentence, so don't break a line there."
(fill-forward-paragraph -1))
(if (< (point) beg)
(goto-char beg))
(if (>= (point) initial)
(if (and (>= (point) initial) (< (point) end))
(setq fill-pfx
(fill-region-as-paragraph (point) end justify nosqueeze))
(goto-char end))))