summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-10-26 16:05:58 +0000
committerRichard M. Stallman <rms@gnu.org>1996-10-26 16:05:58 +0000
commit7c9097d02fd92884a28f002ad25d9f6baa07e35a (patch)
treeb363d5ee9ac8ce75da246c3582ea61423d6e4d85 /lisp/progmodes
parent91f64ec29e66f9239efb428f25fab738ce2f70cc (diff)
downloademacs-7c9097d02fd92884a28f002ad25d9f6baa07e35a.tar.gz
(pascal-indent-declaration): Avoid infinite loop
if edpos is at end of buffer.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/pascal.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el
index 2cad0a01afd..d3474619089 100644
--- a/lisp/progmodes/pascal.el
+++ b/lisp/progmodes/pascal.el
@@ -989,7 +989,8 @@ indent of the current line in parameterlist."
;; Do lineup
(setq ind (pascal-get-lineup-indent stpos edpos lineup))
(goto-char stpos)
- (while (<= (point) (marker-position edpos))
+ (while (and (<= (point) (marker-position edpos))
+ (not (eobp)))
(if (search-forward lineup (pascal-get-end-of-line) 'move)
(forward-char -1))
(delete-horizontal-space)