diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-10-21 11:59:11 +0200 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-03-30 21:05:08 -0400 |
commit | d1e113ee60a0750acbbc0da569f7cc1bab88f11c (patch) | |
tree | d7523c06b56743ce0f5c687a3f1c27c7dbc2edc5 | |
parent | 7a8ae233d1bdf538a99233e52f0d7dd0975df2d1 (diff) | |
download | emacs-d1e113ee60a0750acbbc0da569f7cc1bab88f11c.tar.gz emacs-d1e113ee60a0750acbbc0da569f7cc1bab88f11c.tar.bz2 emacs-d1e113ee60a0750acbbc0da569f7cc1bab88f11c.zip |
Stop `fixup-whitespace' adding trailing whitespace (Bug#18783)
* lisp/simple.el (fixup-whitespace): Insert no spaces if point is at
end of line after deleting horizontal whitespace.
Copyright-paperwork-exempt: yes
-rw-r--r-- | lisp/simple.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 369fbf71923..48c1a9b15d6 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -833,7 +833,7 @@ Leave one space or none, according to the context." (interactive "*") (save-excursion (delete-horizontal-space) - (if (or (looking-at "^\\|\\s)") + (if (or (looking-at "^\\|$\\|\\s)") (save-excursion (forward-char -1) (looking-at "$\\|\\s(\\|\\s'"))) nil |