diff options
| -rw-r--r-- | lisp/subr.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index f70f3edd028..447c3eb1a4f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2340,9 +2340,10 @@ Usage example: | |||
| 2340 | ;; Add padding. | 2340 | ;; Add padding. |
| 2341 | (while (not (eobp)) | 2341 | (while (not (eobp)) |
| 2342 | (end-of-line) | 2342 | (end-of-line) |
| 2343 | (insert (make-string (- (* (mod times columns) | 2343 | (insert (make-string (max (- (* (mod times columns) |
| 2344 | (+ fill-column 4)) | 2344 | (+ fill-column 4)) |
| 2345 | (current-column)) | 2345 | (current-column)) |
| 2346 | 0) | ||
| 2346 | ?\s)) | 2347 | ?\s)) |
| 2347 | (forward-line 1)))) | 2348 | (forward-line 1)))) |
| 2348 | (setq times (1+ times)) | 2349 | (setq times (1+ times)) |
| @@ -2354,10 +2355,11 @@ Usage example: | |||
| 2354 | (cdr (assq (car elem) altered-names)))) | 2355 | (cdr (assq (car elem) altered-names)))) |
| 2355 | (fill-region (point-min) (point-max)) | 2356 | (fill-region (point-min) (point-max)) |
| 2356 | (when (nth 2 elem) | 2357 | (when (nth 2 elem) |
| 2357 | (insert (nth 2 elem)) | 2358 | (let ((start (point))) |
| 2358 | (unless (bolp) | 2359 | (insert (nth 2 elem)) |
| 2359 | (insert "\n")) | 2360 | (unless (bolp) |
| 2360 | (fill-region start (point-max))) | 2361 | (insert "\n")) |
| 2362 | (fill-region start (point-max)))) | ||
| 2361 | (buffer-string)))) | 2363 | (buffer-string)))) |
| 2362 | (goto-char start) | 2364 | (goto-char start) |
| 2363 | (dolist (line (split-string text "\n")) | 2365 | (dolist (line (split-string text "\n")) |