diff options
| author | Richard M. Stallman | 1996-10-26 16:05:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-10-26 16:05:58 +0000 |
| commit | 7c9097d02fd92884a28f002ad25d9f6baa07e35a (patch) | |
| tree | b363d5ee9ac8ce75da246c3582ea61423d6e4d85 /lisp | |
| parent | 91f64ec29e66f9239efb428f25fab738ce2f70cc (diff) | |
| download | emacs-7c9097d02fd92884a28f002ad25d9f6baa07e35a.tar.gz emacs-7c9097d02fd92884a28f002ad25d9f6baa07e35a.zip | |
(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." | |||
| 989 | ;; Do lineup | 989 | ;; Do lineup |
| 990 | (setq ind (pascal-get-lineup-indent stpos edpos lineup)) | 990 | (setq ind (pascal-get-lineup-indent stpos edpos lineup)) |
| 991 | (goto-char stpos) | 991 | (goto-char stpos) |
| 992 | (while (<= (point) (marker-position edpos)) | 992 | (while (and (<= (point) (marker-position edpos)) |
| 993 | (not (eobp))) | ||
| 993 | (if (search-forward lineup (pascal-get-end-of-line) 'move) | 994 | (if (search-forward lineup (pascal-get-end-of-line) 'move) |
| 994 | (forward-char -1)) | 995 | (forward-char -1)) |
| 995 | (delete-horizontal-space) | 996 | (delete-horizontal-space) |