2001-07-03 Simon Josefsson <jas@extundo.com>
authorSimon Josefsson <jas@extundo.com>
Tue, 3 Jul 2001 11:26:23 +0000 (11:26 +0000)
committerSimon Josefsson <jas@extundo.com>
Tue, 3 Jul 2001 11:26:23 +0000 (11:26 +0000)
* flow-fill.el (fill-flowed): If `fill-region' inserts empty line,
remove it (workaround XEmacs `fill-region' bug).

lisp/ChangeLog
lisp/flow-fill.el

index 379230c..141d331 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-03  Simon Josefsson  <jas@extundo.com>
+
+       * flow-fill.el (fill-flowed): If `fill-region' inserts empty line,
+       remove it (workaround XEmacs `fill-region' bug).
+
 2001-07-01  Simon Josefsson  <jas@extundo.com>
 
        * nnimap.el (nnimap-date-days-ago): Defeat locale.
index 64946f9..5d738fe 100644 (file)
            (let ((fill-prefix (when quote (concat quote " "))))
              (fill-region (fill-flowed-point-at-bol)
                           (fill-flowed-point-at-eol)
-                          'left 'nosqueeze))))))))
+                          'left 'nosqueeze)
+
+             (when (looking-at "^$")
+               (kill-line)))))))))
 
 (provide 'flow-fill)