]> git.eshelyaron.com Git - emacs.git/commitdiff
* simple.el (delete-trailing-whitespace): Return nil for the
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 10 Mar 2011 11:28:33 +0000 (12:28 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 10 Mar 2011 11:28:33 +0000 (12:28 +0100)
benefit of `write-file-functions'.

lisp/ChangeLog
lisp/simple.el

index da61e7025ad2f167ab6e11724e3f39b8150c18c0..760224f601c34e409b053f70417cdbc70ac48095 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-10  Michael Albinus  <michael.albinus@gmx.de>
+
+       * simple.el (delete-trailing-whitespace): Return nil for the
+       benefit of `write-file-functions'.
+
 2011-03-10  Glenn Morris  <rgm@gnu.org>
 
        * vc/vc-hg.el (vc-hg-pull, vc-hg-merge-branch): Use vc-hg-program.
index 653501625b5073744641d708a54944159b281659..7391ff82585c77a5a33a0f0d6b9524adbef17e6b 100644 (file)
@@ -637,7 +637,9 @@ If the region is active, only delete whitespace within the region."
             (if (looking-at ".*\f")
                 (goto-char (match-end 0))))
           (delete-region (point) (match-end 0)))
-        (set-marker end-marker nil)))))
+        (set-marker end-marker nil))))
+  ;; Return nil for the benefit of `write-file-functions'.
+  nil)
 
 (defun newline-and-indent ()
   "Insert a newline, then indent according to major mode.