aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-19 04:02:06 +0000
committerRichard M. Stallman1995-01-19 04:02:06 +0000
commit650f194c5accb990c199fd802fd6778ca5b394c8 (patch)
treee4630f97caab6bfe79c0d91f34b6e60bdec2957d
parent2dc25e2af5a6dfbb0100cdd68e84b4e1ea1f4b0f (diff)
downloademacs-650f194c5accb990c199fd802fd6778ca5b394c8.tar.gz
emacs-650f194c5accb990c199fd802fd6778ca5b394c8.zip
(forward-paragraph): Fix end-of-buffer bug.
-rw-r--r--lisp/textmodes/paragraphs.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index c85b15249f3..0edfe88c876 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -142,8 +142,8 @@ to which the end of the previous line belongs, or the end of the buffer."
142 (not (looking-at-hard paragraph-separate)) 142 (not (looking-at-hard paragraph-separate))
143 (looking-at fill-prefix-regexp)) 143 (looking-at fill-prefix-regexp))
144 (forward-line 1)) 144 (forward-line 1))
145 (while (and (not (eobp)) 145 (while (and (re-search-forward paragraph-start nil 1)
146 (re-search-forward paragraph-start nil 1) 146 (not (eobp))
147 use-hard-newlines 147 use-hard-newlines
148 (null (get-text-property (1- (match-beginning 0)) 'hard))) 148 (null (get-text-property (1- (match-beginning 0)) 'hard)))
149 (forward-char 1)) 149 (forward-char 1))