comparison lisp/textmodes/fill.el @ 77336:30ac7cda83c0

(fill-move-to-break-point): Don't bind fill-nobreak-predicate.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 20 Apr 2007 14:01:37 +0000
parents cf580adfa498
children d7737931073c
comparison
equal deleted inserted replaced
77335:dfae3f6e5202 77336:30ac7cda83c0
519 ;; category `|' anyway. 519 ;; category `|' anyway.
520 (if (>= linebeg (point)) 520 (if (>= linebeg (point))
521 ;; Ok, skip at least one word or one \c| character. 521 ;; Ok, skip at least one word or one \c| character.
522 ;; Meanwhile, don't stop at a period followed by one space. 522 ;; Meanwhile, don't stop at a period followed by one space.
523 (let ((to (line-end-position)) 523 (let ((to (line-end-position))
524 (fill-nobreak-predicate nil) ;to break sooner.
525 (first t)) 524 (first t))
526 (goto-char linebeg) 525 (goto-char linebeg)
527 (while (and (< (point) to) (or first (fill-nobreak-p))) 526 (while (and (< (point) to) (or first (fill-nobreak-p)))
528 ;; Find a breakable point while ignoring the 527 ;; Find a breakable point while ignoring the
529 ;; following spaces. 528 ;; following spaces.