Mercurial > emacs
comparison lisp/textmodes/fill.el @ 50443:dff98b69fed2
(fill-delete-newlines): Don't delete past TO.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 04 Apr 2003 21:43:12 +0000 |
parents | e71ddce32fec |
children | f20dbbe44da9 |
comparison
equal
deleted
inserted
replaced
50442:885f63d7c285 | 50443:dff98b69fed2 |
---|---|
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. | 454 ;; Remove trailing whitespace. |
455 ;; Maybe canonically-space-region should do that. | 455 ;; Maybe canonically-space-region should do that. |
456 (goto-char to) (delete-horizontal-space)) | 456 (goto-char to) (delete-char (- (skip-chars-backward " \t")))) |
457 (goto-char from)) | 457 (goto-char from)) |
458 | 458 |
459 (defun fill-move-to-break-point (linebeg) | 459 (defun fill-move-to-break-point (linebeg) |
460 "Move to the position where the line should be broken. | 460 "Move to the position where the line should be broken. |
461 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." |