aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-09-29 22:23:43 +0000
committerLuc Teirlinck2004-09-29 22:23:43 +0000
commit30857a614a4dd26c6f20d45d51694dec60260ce8 (patch)
treef48196c0f0be484c3ad31c9564044687ae6f0f5e
parent269a8f1c8e221c1d32f79206ebaa71df4200b5b5 (diff)
downloademacs-30857a614a4dd26c6f20d45d51694dec60260ce8.tar.gz
emacs-30857a614a4dd26c6f20d45d51694dec60260ce8.zip
(forward-paragraph): Avoid args-out-of-range error when point winds up
at the beginning of the buffer and hard newlines are enabled.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/textmodes/paragraphs.el5
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e443b47323d..0ed8630d850 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12004-09-29 Luc Teirlinck <teirllm@auburn.edu> 12004-09-29 Luc Teirlinck <teirllm@auburn.edu>
2 2
3 * textmodes/paragraphs.el (forward-paragraph): Avoid
4 args-out-of-range error when point winds up at the beginning of
5 the buffer and hard newlines are enabled.
6
3 * newcomment.el (comment-multi-line): Doc fix. 7 * newcomment.el (comment-multi-line): Doc fix.
4 8
52004-09-29 Stefan Monnier <monnier@iro.umontreal.ca> 92004-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index e5f38971e40..868dcb2d107 100644
--- a/lisp/textmodes/paragraphs.el
+++ b/lisp/textmodes/paragraphs.el
@@ -274,8 +274,9 @@ Returns the count of paragraphs left to move."
274 (not (looking-at parsep))) 274 (not (looking-at parsep)))
275 (not (and (looking-at parstart) 275 (not (and (looking-at parstart)
276 (or (not use-hard-newlines) 276 (or (not use-hard-newlines)
277 (get-text-property (1- start) 'hard) 277 (bobp)
278 (bobp))))) 278 (get-text-property
279 (1- start) 'hard)))))
279 (setq found-start nil) 280 (setq found-start nil)
280 (goto-char start)) 281 (goto-char start))
281 found-start) 282 found-start)