aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-31 16:41:12 +0000
committerRichard M. Stallman1994-01-31 16:41:12 +0000
commitbabf687a8b9e48028be2a475ec6ea52c64a89090 (patch)
tree443dc41e5dc696e4a9303d0929527f3cf788ce23
parentd5c61e945e6aa049942968c96d4a56144cc60c52 (diff)
downloademacs-babf687a8b9e48028be2a475ec6ea52c64a89090.tar.gz
emacs-babf687a8b9e48028be2a475ec6ea52c64a89090.zip
(show-children): Don't call outline-level at eob.
-rw-r--r--lisp/textmodes/ooutline.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/ooutline.el b/lisp/textmodes/ooutline.el
index c3f05af00bb..207bffcdf74 100644
--- a/lisp/textmodes/ooutline.el
+++ b/lisp/textmodes/ooutline.el
@@ -372,7 +372,9 @@ Default is enough to cause the following heading to appear."
372 (beginning-of-line) 372 (beginning-of-line)
373 (let ((start-level (funcall outline-level))) 373 (let ((start-level (funcall outline-level)))
374 (outline-next-heading) 374 (outline-next-heading)
375 (max 1 (- (funcall outline-level) start-level)))))) 375 (if (eobp)
376 1
377 (max 1 (- (funcall outline-level) start-level)))))))
376 (save-excursion 378 (save-excursion
377 (save-restriction 379 (save-restriction
378 (beginning-of-line) 380 (beginning-of-line)