diff options
| author | Richard M. Stallman | 1994-09-23 20:46:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-23 20:46:35 +0000 |
| commit | 30d653c4016b637ac3bf47ccf71278568f3754c0 (patch) | |
| tree | 8c477e76d159d1bb19fb006c804c40b6ab17ddaa | |
| parent | 3f254763f0b3a243b023c57e0663e8c4efc0d586 (diff) | |
| download | emacs-30d653c4016b637ac3bf47ccf71278568f3754c0.tar.gz emacs-30d653c4016b637ac3bf47ccf71278568f3754c0.zip | |
(justify-current-line): Inherit props when inserting spaces.
| -rw-r--r-- | lisp/textmodes/fill.el | 5 |
1 files changed, 3 insertions, 2 deletions
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." | |||
| 295 | (goto-char beg) | 295 | (goto-char beg) |
| 296 | (while (re-search-forward "[.?!][])\"']*\n" nil t) | 296 | (while (re-search-forward "[.?!][])\"']*\n" nil t) |
| 297 | (forward-char -1) | 297 | (forward-char -1) |
| 298 | (insert ? )) | 298 | (insert-and-inherit ? )) |
| 299 | (goto-char (point-max)) | 299 | (goto-char (point-max)) |
| 300 | ;; Note that the buffer bounds start after the indentation, | 300 | ;; Note that the buffer bounds start after the indentation, |
| 301 | ;; so the columns counted by INDENT don't appear in (current-column). | 301 | ;; 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." | |||
| 310 | (search-backward " "))) | 310 | (search-backward " "))) |
| 311 | (skip-chars-backward " ") | 311 | (skip-chars-backward " ") |
| 312 | (setq nmove (1- nmove)))) | 312 | (setq nmove (1- nmove)))) |
| 313 | (insert " ") | 313 | (insert-and-inherit " ") |
| 314 | (skip-chars-backward " ") | 314 | (skip-chars-backward " ") |
| 315 | (setq ncols (1- ncols))))))) | 315 | (setq ncols (1- ncols))))))) |
| 316 | nil) | 316 | nil) |
| 317 | |||
| 317 | 318 | ||
| 318 | (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp) | 319 | (defun fill-nonuniform-paragraphs (min max &optional justifyp mailp) |
| 319 | "Fill paragraphs within the region, allowing varying indentation within each. | 320 | "Fill paragraphs within the region, allowing varying indentation within each. |