]> git.eshelyaron.com Git - emacs.git/commitdiff
(justify-current-line): Inherit props when inserting spaces.
authorRichard M. Stallman <rms@gnu.org>
Fri, 23 Sep 1994 20:46:35 +0000 (20:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 23 Sep 1994 20:46:35 +0000 (20:46 +0000)
lisp/textmodes/fill.el

index 36cb5c6b52c5977704ab4b97dd8a41f52c1c31eb..73ca3ff2418c5c69fc715e38470b72a2e5e9cea7 100644 (file)
@@ -295,7 +295,7 @@ space does not end a sentence, so don't break a line there."
       (goto-char beg)
       (while (re-search-forward "[.?!][])\"']*\n" nil t)
        (forward-char -1)
-       (insert ? ))
+       (insert-and-inherit ? ))
       (goto-char (point-max))
       ;; Note that the buffer bounds start after the indentation,
       ;; so the columns counted by INDENT don't appear in (current-column).
@@ -310,10 +310,11 @@ space does not end a sentence, so don't break a line there."
                     (search-backward " ")))
                (skip-chars-backward " ")
                (setq nmove (1- nmove))))
-           (insert " ")
+           (insert-and-inherit " ")
            (skip-chars-backward " ")
            (setq ncols (1- ncols)))))))
   nil)
+
 \f
 (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp)
   "Fill paragraphs within the region, allowing varying indentation within each.