2011-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
+ * simple.el (delete-trailing-whitespace): Fix last change.
+
* progmodes/perl-mode.el (perl-syntax-propertize-function):
Don't confuse "y => 3" as the beginning of a `y' operation.
;; Delete trailing empty lines.
(goto-char end-marker)
(when (and (not end)
- (<= (skip-chars-backward "\n") -2)
;; Really the end of buffer.
- (save-restriction (widen) (eobp)))
+ (save-restriction (widen) (eobp))
+ (<= (skip-chars-backward "\n") -2))
(delete-region (1+ (point)) end-marker))
(set-marker end-marker nil))))
;; Return nil for the benefit of `write-file-functions'.