]> git.eshelyaron.com Git - emacs.git/commitdiff
(delete-trailing-whitespace): Don't delete formfeeds.
authorGerd Moellmann <gerd@gnu.org>
Mon, 29 Jan 2001 20:36:26 +0000 (20:36 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 29 Jan 2001 20:36:26 +0000 (20:36 +0000)
lisp/ChangeLog
lisp/simple.el

index c90a1f02d9e20c313755401e0599fa485959ebfb..f8dcaf67ee2d4c8833b801b726bc57baec659a3e 100644 (file)
@@ -1,3 +1,7 @@
+2001-01-29  Gerd Moellmann  <gerd@gnu.org>
+
+       * simple.el (delete-trailing-whitespace): Don't delete formfeeds.
+
 2001-01-29  Stefan Monnier  <monnier@cs.yale.edu>
 
        * pcvs.el (cvs-mark-fis-dead): New function.
index f81b05f13b16c6992d2750859a2f685bb122e5b5..092dfad5f1608a1e3b2939664f2d4ad5d3f8446e 100644 (file)
@@ -237,6 +237,9 @@ This respects narrowing, created by \\[narrow-to-region] and friends."
       (goto-char (point-min))
       (while (re-search-forward "\\s-$" nil t)
        (skip-syntax-backward "-" (save-excursion (forward-line 0) (point)))
+       ;; Don't delete formfeeds, even if they are considered whitespace.
+       (if (looking-at ".*\f")
+           (goto-char (match-end 0)))
        (delete-region (point) (match-end 0))))))
 
 (defun newline-and-indent ()