emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99809: * textmodes/fill.el (fill-


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-23 r99809: * textmodes/fill.el (fill-region): Don't fill past the end.
Date: Tue, 18 May 2010 23:51:55 -0400
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99809
committer: Stefan Monnier <address@hidden>
branch nick: emacs-23
timestamp: Tue 2010-05-18 23:51:55 -0400
message:
  * textmodes/fill.el (fill-region): Don't fill past the end.
modified:
  lisp/ChangeLog
  lisp/textmodes/fill.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-05-18 20:51:12 +0000
+++ b/lisp/ChangeLog    2010-05-19 03:51:55 +0000
@@ -1,3 +1,7 @@
+2010-05-19  Uday S Reddy  <address@hidden>  (tiny change)
+
+       * textmodes/fill.el (fill-region): Don't fill past the end (bug#6201).
+
 2010-05-18  Stefan Monnier  <address@hidden>
 
        * subr.el (read-quoted-char): Resolve modifiers after key

=== modified file 'lisp/textmodes/fill.el'
--- a/lisp/textmodes/fill.el    2010-01-13 08:35:10 +0000
+++ b/lisp/textmodes/fill.el    2010-05-19 03:51:55 +0000
@@ -1036,7 +1036,7 @@
          (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))))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]