]> git.eshelyaron.com Git - emacs.git/commitdiff
(justify-current-line): Delete space at end of line.
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 20:09:22 +0000 (20:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 20:09:22 +0000 (20:09 +0000)
lisp/textmodes/fill.el

index 863b1e7c6e3587a45a32941073a3ebe748682158..36cb5c6b52c5977704ab4b97dd8a41f52c1c31eb 100644 (file)
@@ -272,7 +272,7 @@ space does not end a sentence, so don't break a line there."
   (interactive)
   (save-excursion
    (save-restriction
-    (let (ncols beg indent)
+    (let (ncols beg indent end)
       (beginning-of-line)
       (forward-char (length fill-prefix))
       (skip-chars-forward " \t")
@@ -280,6 +280,9 @@ space does not end a sentence, so don't break a line there."
       (setq beg (point))
       (end-of-line)
       (narrow-to-region beg (point))
+      (setq end (point))
+      (skip-chars-backward " \t")
+      (delete-char (- end (point)))
       (goto-char beg)
       (while (re-search-forward "   *" nil t)
        (delete-region