diff options
| author | Richard M. Stallman <rms@gnu.org> | 1996-10-26 16:05:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1996-10-26 16:05:58 +0000 |
| commit | 7c9097d02fd92884a28f002ad25d9f6baa07e35a (patch) | |
| tree | b363d5ee9ac8ce75da246c3582ea61423d6e4d85 /lisp | |
| parent | 91f64ec29e66f9239efb428f25fab738ce2f70cc (diff) | |
| download | emacs-7c9097d02fd92884a28f002ad25d9f6baa07e35a.tar.gz | |
(pascal-indent-declaration): Avoid infinite loop
if edpos is at end of buffer.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/pascal.el | 3 |
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) |
