emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d1e113e: Stop `fixup-whitespace' adding trailing wh


From: Noam Postavsky
Subject: [Emacs-diffs] master d1e113e: Stop `fixup-whitespace' adding trailing whitespace (Bug#18783)
Date: Thu, 30 Mar 2017 21:04:34 -0400 (EDT)

branch: master
commit d1e113ee60a0750acbbc0da569f7cc1bab88f11c
Author: Niels Möller <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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
---
 lisp/simple.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 369fbf7..48c1a9b 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]