Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mode.el @ 14379:ea15aa9bae36
(lisp-fill-paragraph): Use fill-paragraph once again for filling a comment.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 26 Jan 1996 19:47:32 +0000 |
parents | fc9c72889fec |
children | fc4be3d538e0 |
comparison
equal
deleted
inserted
replaced
14378:2110ae3ef540 | 14379:ea15aa9bae36 |
---|---|
740 (narrow-to-region | 740 (narrow-to-region |
741 ;; Find the first line we should include in the region to fill. | 741 ;; Find the first line we should include in the region to fill. |
742 (save-excursion | 742 (save-excursion |
743 (while (and (zerop (forward-line -1)) | 743 (while (and (zerop (forward-line -1)) |
744 (looking-at "^[ \t]*;"))) | 744 (looking-at "^[ \t]*;"))) |
745 ;; We may have gone to far. Go forward again. | 745 ;; We may have gone too far. Go forward again. |
746 (or (looking-at ".*;") | 746 (or (looking-at ".*;") |
747 (forward-line 1)) | 747 (forward-line 1)) |
748 (point)) | 748 (point)) |
749 ;; Find the beginning of the first line past the region to fill. | 749 ;; Find the beginning of the first line past the region to fill. |
750 (save-excursion | 750 (save-excursion |
754 | 754 |
755 ;; Lines with only semicolons on them can be paragraph boundaries. | 755 ;; Lines with only semicolons on them can be paragraph boundaries. |
756 (let ((paragraph-start (concat paragraph-start "\\|[ \t;]*$")) | 756 (let ((paragraph-start (concat paragraph-start "\\|[ \t;]*$")) |
757 (paragraph-separate (concat paragraph-start "\\|[ \t;]*$")) | 757 (paragraph-separate (concat paragraph-start "\\|[ \t;]*$")) |
758 (fill-prefix comment-fill-prefix)) | 758 (fill-prefix comment-fill-prefix)) |
759 (fill-region (point-min) (point-max) justify t)))) | 759 (fill-paragraph justify)))) |
760 t)) | 760 t)) |
761 | 761 |
762 | 762 |
763 (defun indent-code-rigidly (start end arg &optional nochange-regexp) | 763 (defun indent-code-rigidly (start end arg &optional nochange-regexp) |
764 "Indent all lines of code, starting in the region, sideways by ARG columns. | 764 "Indent all lines of code, starting in the region, sideways by ARG columns. |