]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Jun 1990 18:35:14 +0000 (18:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Jun 1990 18:35:14 +0000 (18:35 +0000)
lisp/textmodes/paragraphs.el

index c0bd7793a107527b9709ef719ee0fbb2b76fd3f8..87c14419b5573c12432fe9f1b6aa6747cb2a95e8 100644 (file)
@@ -130,7 +130,11 @@ negative arg -N means kill forward to Nth end of paragraph."
     (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))