Mercurial > emacs
changeset 57282:a35c6f55300f
(forward-paragraph): Avoid args-out-of-range error when point winds up
at the beginning of the buffer and hard newlines are enabled.
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Wed, 29 Sep 2004 22:21:24 +0000 |
parents | 902c984fa20a |
children | 4bdc0f6258ec |
files | lisp/textmodes/paragraphs.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/paragraphs.el Wed Sep 29 22:17:15 2004 +0000 +++ b/lisp/textmodes/paragraphs.el Wed Sep 29 22:21:24 2004 +0000 @@ -274,8 +274,9 @@ (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)