diff options
| author | Richard M. Stallman | 1996-11-02 20:15:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-11-02 20:15:18 +0000 |
| commit | 8d6467a40bf982a00e83e96cbf5613d4a9203f97 (patch) | |
| tree | 814395c1cabbb7be58a65ae2f34545facf905b27 | |
| parent | 6fac14093991171242d4f2d1a6cfabfcc5ed9667 (diff) | |
| download | emacs-8d6467a40bf982a00e83e96cbf5613d4a9203f97.tar.gz emacs-8d6467a40bf982a00e83e96cbf5613d4a9203f97.zip | |
(change-log-fill-paragraph): Return non-nil so
fill-paragraph doesn't continue filling. Don't skip backwards
over a paragraph if we at a paragraph start.
| -rw-r--r-- | lisp/add-log.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 45d1893e0c0..ef0e83dbca1 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -355,10 +355,11 @@ Runs `change-log-mode-hook'." | |||
| 355 | "Fill the paragraph, but preserve open parentheses at beginning of lines. | 355 | "Fill the paragraph, but preserve open parentheses at beginning of lines. |
| 356 | Prefix arg means justify as well." | 356 | Prefix arg means justify as well." |
| 357 | (interactive "P") | 357 | (interactive "P") |
| 358 | (let ((end (save-excursion (forward-paragraph) (point))) | 358 | (let ((end (progn (forward-paragraph) (point))) |
| 359 | (beg (save-excursion (backward-paragraph)(point))) | 359 | (beg (progn (backward-paragraph) (point))) |
| 360 | (paragraph-start (concat paragraph-start "\\|\\s *\\s("))) | 360 | (paragraph-start (concat paragraph-start "\\|\\s *\\s("))) |
| 361 | (fill-region beg end justify))) | 361 | (fill-region beg end justify) |
| 362 | t)) | ||
| 362 | 363 | ||
| 363 | (defvar add-log-current-defun-header-regexp | 364 | (defvar add-log-current-defun-header-regexp |
| 364 | "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[-_a-zA-Z]+\\)[ \t]*[:=]" | 365 | "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[-_a-zA-Z]+\\)[ \t]*[:=]" |