From: Richard M. Stallman Date: Fri, 23 Sep 1994 20:46:35 +0000 (+0000) Subject: (justify-current-line): Inherit props when inserting spaces. X-Git-Tag: emacs-19.34~6828 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30d653c4016b637ac3bf47ccf71278568f3754c0;p=emacs.git (justify-current-line): Inherit props when inserting spaces. --- diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 36cb5c6b52c..73ca3ff2418 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el @@ -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) + (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp) "Fill paragraphs within the region, allowing varying indentation within each.