changeset 8363:bf559544bd48

(justify-current-line): Delete space at end of line.
author Richard M. Stallman <rms@gnu.org>
date Wed, 27 Jul 1994 20:09:22 +0000
parents 87e1b76bbd6b
children f40f688148d1
files lisp/textmodes/fill.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Wed Jul 27 18:55:38 1994 +0000
+++ b/lisp/textmodes/fill.el	Wed Jul 27 20:09:22 1994 +0000
@@ -272,7 +272,7 @@
   (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 @@
       (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