# HG changeset patch # User Richard M. Stallman # Date 780353195 0 # Node ID 74fd93bc3568c5e9b0394144e716ac34f2206eab # Parent 52858112c2ab19a8ec9286889f0d225712a02258 (justify-current-line): Inherit props when inserting spaces. diff -r 52858112c2ab -r 74fd93bc3568 lisp/textmodes/fill.el --- a/lisp/textmodes/fill.el Fri Sep 23 18:37:12 1994 +0000 +++ b/lisp/textmodes/fill.el Fri Sep 23 20:46:35 1994 +0000 @@ -295,7 +295,7 @@ (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 @@ (search-backward " "))) (skip-chars-backward " ") (setq nmove (1- nmove)))) - (insert " ") + (insert-and-inherit " ") (skip-chars-backward " ") (setq ncols (1- ncols))))))) nil) + (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp) "Fill paragraphs within the region, allowing varying indentation within each.