diff options
| author | Richard M. Stallman | 1995-11-11 05:33:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-11 05:33:37 +0000 |
| commit | 14ee19532349ce3cef1f0fd29d136d72df5e05c6 (patch) | |
| tree | 28f20b33de1fff7465417df6a871ea8247663f5f /lisp | |
| parent | 763d157993da52634f57506a78141701d44aec49 (diff) | |
| download | emacs-14ee19532349ce3cef1f0fd29d136d72df5e05c6.tar.gz emacs-14ee19532349ce3cef1f0fd29d136d72df5e05c6.zip | |
(change-log-mode): Remove incorrect "^" anchors from
paragraph-start and -separate.
(change-log-fill-paragraph): Use regular value of paragraph-start
to bound paragraph to be filled, modified values only to do the
filling. Make lines beginning with parentheses
paragraph-starters, but not paragraph-separators.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/add-log.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index dbeff6a6bbc..e77b8cdcb35 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -282,8 +282,10 @@ Runs `change-log-mode-hook'." | |||
| 282 | fill-column 74) | 282 | fill-column 74) |
| 283 | (use-local-map change-log-mode-map) | 283 | (use-local-map change-log-mode-map) |
| 284 | ;; Let each entry behave as one paragraph: | 284 | ;; Let each entry behave as one paragraph: |
| 285 | (set (make-local-variable 'paragraph-start) "^\\s *$\\|^\f") | 285 | ;; We really do want "^" in paragraph-start below: it is only the lines that |
| 286 | (set (make-local-variable 'paragraph-separate) "^\\s *$\\|^\f\\|^\\sw") | 286 | ;; begin at column 0 (despite the left-margin of 8) that we are looking for. |
| 287 | (set (make-local-variable 'paragraph-start) "\\s *$\\|\f\\|^\\sw") | ||
| 288 | (set (make-local-variable 'paragraph-separate) "\\s *$\\|\f\\|^\\sw") | ||
| 287 | ;; Let all entries for one day behave as one page. | 289 | ;; Let all entries for one day behave as one page. |
| 288 | ;; Match null string on the date-line so that the date-line | 290 | ;; Match null string on the date-line so that the date-line |
| 289 | ;; is grouped with what follows. | 291 | ;; is grouped with what follows. |
| @@ -302,9 +304,10 @@ Runs `change-log-mode-hook'." | |||
| 302 | "Fill the paragraph, but preserve open parentheses at beginning of lines. | 304 | "Fill the paragraph, but preserve open parentheses at beginning of lines. |
| 303 | Prefix arg means justify as well." | 305 | Prefix arg means justify as well." |
| 304 | (interactive "P") | 306 | (interactive "P") |
| 305 | (let ((paragraph-separate (concat paragraph-separate "\\|^\\s *\\s(")) | 307 | (let ((end (save-excursion (forward-paragraph) (point))) |
| 306 | (paragraph-start (concat paragraph-start "\\|^\\s *\\s("))) | 308 | (beg (save-excursion (backward-paragraph)(point))) |
| 307 | (fill-paragraph justify))) | 309 | (paragraph-start (concat paragraph-start "\\|\\s *\\s("))) |
| 310 | (fill-region beg end justify))) | ||
| 308 | 311 | ||
| 309 | (defvar add-log-current-defun-header-regexp | 312 | (defvar add-log-current-defun-header-regexp |
| 310 | "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[-_a-zA-Z]+\\)[ \t]*[:=]" | 313 | "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[-_a-zA-Z]+\\)[ \t]*[:=]" |