Mercurial > emacs
changeset 9026:74fd93bc3568
(justify-current-line): Inherit props when inserting spaces.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 23 Sep 1994 20:46:35 +0000 |
parents | 52858112c2ab |
children | 07d79cbdfbc9 |
files | lisp/textmodes/fill.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.