+2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * textmodes/fill.el (fill-region-as-paragraph): Refine last change.
+
2006-07-08 Richard Stallman <rms@gnu.org>
* term/x-win.el (x-handle-display): Add doc string.
* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
- * subr.el (def-edebug-spec): Moved here.
- * emacs-lisp/edebug.el (def-edebug-spec): Moved to subr.el.
+ * subr.el (def-edebug-spec): Move here.
+ * emacs-lisp/edebug.el (def-edebug-spec): Move to subr.el.
* imenu.el (imenu-choose-buffer-index): Doc fix.
(let ((from-plus-indent (point))
(oneleft nil))
+ (beginning-of-line)
;; We used to round up to whole line, but that prevents us from
- ;; correctly handling filling of mixed code-and-comment where we
- ;; do want to fill the comment but not the code.
- ;; (beginning-of-line) (setq from (point))
+ ;; correctly handling filling of mixed code-and-comment where we do want
+ ;; to fill the comment but not the code. So only use (point) if it's
+ ;; further than `from', which means that `from' is followed by some
+ ;; number of empty lines.
+ (setq from (max (point) from))
;; Delete all but one soft newline at end of region.
;; And leave TO before that one.