Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix wrong-number-of-arguments for delete-trailing-whitespace

  • Loading branch information...
commit 5b1130ade673a9acc24e647e3be0103a310d467e 1 parent 2b4a737
@glasserc authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lisp/ethan-wspace.el
View
7 lisp/ethan-wspace.el
@@ -316,8 +316,13 @@ This internally uses `show-trailing-whitespace'."
:init-value nil :lighter nil :keymap nil
(setq show-trailing-whitespace ethan-wspace-highlight-eol-mode))
+(defun ethan-wspace-type-eol-clean (begin end)
+ (save-restriction
+ (narrow-to-region begin end)
+ (delete-trailing-whitespace)))
+
(ethan-wspace-declare-type eol :find ethan-wspace-type-eol-find
- :clean delete-trailing-whitespace
+ :clean ethan-wspace-type-eol-clean
:highlight ethan-wspace-highlight-eol-mode)
;; show-trailing-whitespace uses the face `trailing-whitespace', so we
Please sign in to comment.
Something went wrong with that request. Please try again.