Mercurial > hg > xemacs-beta
diff lisp/fill.el @ 353:3b3709405255 r21-1-6
Import from CVS: tag r21-1-6
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:55:33 +0200 |
parents | 0e522484dd2a |
children | cc15677e0335 |
line wrap: on
line diff
--- a/lisp/fill.el Mon Aug 13 10:54:55 2007 +0200 +++ b/lisp/fill.el Mon Aug 13 10:55:33 2007 +0200 @@ -226,9 +226,10 @@ ;; XEmacs change (if (not dont-skip-first) (forward-line 1)) - (if (>= (point) to) - (goto-char firstline) - (setq at-second t)) + (cond ((>= (point) to) + (goto-char firstline)) + ((/= (point) from) + (setq at-second t))) (move-to-left-margin) ;; XEmacs change (let ((start (point)) @@ -236,7 +237,7 @@ ;(eol (save-excursion (end-of-line) (point))) ) (setq result - (if (not (looking-at paragraph-start)) + (if (or dont-skip-first (not (looking-at paragraph-start))) (cond ((and adaptive-fill-regexp (looking-at adaptive-fill-regexp)) (buffer-substring-no-properties start (match-end 0))) (adaptive-fill-function (funcall adaptive-fill-function)))))