X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Ffill.el;h=181bcc853bfcc0a0cc690f0eb82640a79a6cadd7;hb=db2eae9655a3e3f4d653d885535815da78d98fe8;hp=780d6e601a7a236ff8e16919b771da8d0aac7623;hpb=a5f466de30a3e927ed1146b0c7e3870e71465c8f;p=chise%2Fxemacs-chise.git- diff --git a/lisp/fill.el b/lisp/fill.el index 780d6e6..181bcc8 100644 --- a/lisp/fill.el +++ b/lisp/fill.el @@ -33,7 +33,7 @@ ;; 97/3/14 Jareth Hein (jhod@po.iijnet.or.jp) added functions for kinsoku (asian text ;; line break processing) -;; 97/06/11 Steve Baur (steve@altair.xemacs.org) converted broken +;; 97/06/11 Steve Baur (steve@xemacs.org) converted broken ;; following-char/preceding-char calls to char-after/char-before. ;;; Code: @@ -226,9 +226,10 @@ first line, insist it must match FIRST-LINE-REGEXP." ;; 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 @@ first line, insist it must match FIRST-LINE-REGEXP." ;(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))))) @@ -429,7 +430,8 @@ space does not end a sentence, so don't break a line there." ;; This is the actual filling loop. (let ((prefixcol 0) linebeg (re-break-point (if (featurep 'mule) - (concat "[ \n\t]\\|" word-across-newline) + (concat "[ \n\t]\\|" word-across-newline + ".\\|." word-across-newline) "[ \n\t]"))) (while (not (eobp)) (setq linebeg (point))