diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-01-19 04:02:06 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-01-19 04:02:06 +0000 |
commit | 3f92df6ec5fae5f6e06b6b7984056302bfcd38f4 (patch) | |
tree | 1215827eb75de794bfe8ca1f3f75d9af830e04f7 /lisp/textmodes/paragraphs.el | |
parent | cbbaddcab9ec8a7424a0e9fa80500572e4987f16 (diff) | |
download | emacs-3f92df6ec5fae5f6e06b6b7984056302bfcd38f4.tar.gz |
(forward-paragraph): Fix end-of-buffer bug.
Diffstat (limited to 'lisp/textmodes/paragraphs.el')
-rw-r--r-- | lisp/textmodes/paragraphs.el | 4 |
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." (not (looking-at-hard paragraph-separate)) (looking-at fill-prefix-regexp)) (forward-line 1)) - (while (and (not (eobp)) - (re-search-forward paragraph-start nil 1) + (while (and (re-search-forward paragraph-start nil 1) + (not (eobp)) use-hard-newlines (null (get-text-property (1- (match-beginning 0)) 'hard))) (forward-char 1)) |