comparison lisp/textmodes/fill.el @ 50437:1a4038cf9a79

(fill-delete-newlines): Remove trailing whitespace.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 04 Apr 2003 20:56:10 +0000
parents 62a57aa6353a
children e71ddce32fec
comparison
equal deleted inserted replaced
50436:0538658c405e 50437:1a4038cf9a79
448 (skip-chars-forward " \t") 448 (skip-chars-forward " \t")
449 ;; Then change all newlines to spaces. 449 ;; Then change all newlines to spaces.
450 (subst-char-in-region from to ?\n ?\ ) 450 (subst-char-in-region from to ?\n ?\ )
451 (if (and nosqueeze (not (eq justify 'full))) 451 (if (and nosqueeze (not (eq justify 'full)))
452 nil 452 nil
453 (canonically-space-region (or squeeze-after (point)) to)) 453 (canonically-space-region (or squeeze-after (point)) to)
454 ;; Remove trailing whitespace.
455 ;; Maybe canonically-space-region should do that.
456 (goto-char to) (delete-horizontal-space))
454 (goto-char from)) 457 (goto-char from))
455 458
456 (defun fill-move-to-break-point (linebeg) 459 (defun fill-move-to-break-point (linebeg)
457 "Move to the position where the line should be broken. 460 "Move to the position where the line should be broken.
458 The break position will be always after LINEBEG and generally before point." 461 The break position will be always after LINEBEG and generally before point."