diff lisp/textmodes/paragraphs.el @ 68:7680293d57f3

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Wed, 27 Jun 1990 18:35:14 +0000
parents 9697c13298e5
children 75cec14894db
line wrap: on
line diff
--- a/lisp/textmodes/paragraphs.el	Wed Jun 20 15:40:29 1990 +0000
+++ b/lisp/textmodes/paragraphs.el	Wed Jun 27 18:35:14 1990 +0000
@@ -130,7 +130,11 @@
     (forward-paragraph -1)
     (setq npoint (point))
     (skip-chars-forward " \t\n")
-    (if (>= (point) opoint)
+    ;; If the range of blank lines found spans the original start point,
+    ;; try again from the beginning of it.
+    ;; Must be careful to avoid infinite loop
+    ;; when following a single return at start of buffer.
+    (if (and (>= (point) opoint) (< npoint opoint))
 	(progn
 	  (goto-char npoint)
 	  (if (> npoint (point-min))