diff options
| author | Luc Teirlinck | 2004-09-29 22:23:43 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-09-29 22:23:43 +0000 |
| commit | 30857a614a4dd26c6f20d45d51694dec60260ce8 (patch) | |
| tree | f48196c0f0be484c3ad31c9564044687ae6f0f5e | |
| parent | 269a8f1c8e221c1d32f79206ebaa71df4200b5b5 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 5 |
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 @@ | |||
| 1 | 2004-09-29 Luc Teirlinck <teirllm@auburn.edu> | 1 | 2004-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 | ||
| 5 | 2004-09-29 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2004-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) |