changeset 16505:39efcea11aad

(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.
author Richard M. Stallman <rms@gnu.org>
date Sat, 02 Nov 1996 20:15:18 +0000
parents 76d22a4f6959
children d6dbe558099c
files lisp/add-log.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/add-log.el	Sat Nov 02 17:20:55 1996 +0000
+++ b/lisp/add-log.el	Sat Nov 02 20:15:18 1996 +0000
@@ -355,10 +355,11 @@
   "Fill the paragraph, but preserve open parentheses at beginning of lines.
 Prefix arg means justify as well."
   (interactive "P")
-  (let ((end (save-excursion (forward-paragraph) (point)))
-	(beg (save-excursion (backward-paragraph)(point)))
+  (let ((end (progn (forward-paragraph) (point)))
+	(beg (progn (backward-paragraph) (point)))
 	(paragraph-start (concat paragraph-start "\\|\\s *\\s(")))
-    (fill-region beg end justify)))
+    (fill-region beg end justify)
+    t))
 
 (defvar add-log-current-defun-header-regexp
   "^\\([A-Z][A-Z_ ]*[A-Z_]\\|[-_a-zA-Z]+\\)[ \t]*[:=]"