mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
* simple.el (delete-trailing-whitespace): Fix last change.
This commit is contained in:
parent
e1504b9b0b
commit
88d9610cae
@ -1,5 +1,7 @@
|
||||
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.
|
||||
|
||||
|
@ -589,9 +589,9 @@ If the region is active, only delete whitespace within the region."
|
||||
;; 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'.
|
||||
|
Loading…
Reference in New Issue
Block a user