Commit 30857a61 authored by Luc Teirlinck's avatar Luc Teirlinck
Browse files

(forward-paragraph): Avoid args-out-of-range error when point winds up

at the beginning of the buffer and hard newlines are enabled.
parent 269a8f1c
2004-09-29 Luc Teirlinck <teirllm@auburn.edu>
* textmodes/paragraphs.el (forward-paragraph): Avoid
args-out-of-range error when point winds up at the beginning of
the buffer and hard newlines are enabled.
* newcomment.el (comment-multi-line): Doc fix.
2004-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
......
......@@ -274,8 +274,9 @@ Returns the count of paragraphs left to move."
(not (looking-at parsep)))
(not (and (looking-at parstart)
(or (not use-hard-newlines)
(get-text-property (1- start) 'hard)
(bobp)))))
(bobp)
(get-text-property
(1- start) 'hard)))))
(setq found-start nil)
(goto-char start))
found-start)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment