]> git.eshelyaron.com Git - emacs.git/commit
Fix whitespace eob cleanup
authorNoam Postavsky <npostavs@gmail.com>
Wed, 21 Dec 2016 04:02:48 +0000 (23:02 -0500)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 24 Dec 2016 14:45:14 +0000 (09:45 -0500)
commitcf5417f02887d681923c7d23326916889ae4049a
tree7c9f6b8f4107520acad49ec69af1e55f72567312
parent25c9cb77b4346c9912c995ca3a63fc7ab424795e
Fix whitespace eob cleanup

* lisp/whitespace.el (whitespace-empty-at-eob-regexp): Match any number
of empty lines at end of buffer.
* test/lisp/whitespace-tests.el (whitespace-cleanup-eob): New test.
(whitespace-tests--cleanup-string): New helper function for tests.
lisp/whitespace.el
test/lisp/whitespace-tests.el [new file with mode: 0644]