aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-19 03:23:10 +0000
committerRichard M. Stallman1999-01-19 03:23:10 +0000
commitc8d3ad6afd20aac24c0d0d81b4d9d9359664bbac (patch)
treef946ced3ec5931fb206788ce16615be8b50aa6c1
parent265519e3f7184dff54f2aff486d11abaf9c6b0e0 (diff)
downloademacs-c8d3ad6afd20aac24c0d0d81b4d9d9359664bbac.tar.gz
emacs-c8d3ad6afd20aac24c0d0d81b4d9d9359664bbac.zip
(pascal-calculate-indent): Code with an invalid
beginning could cause Emacs to hang. Fixed.
-rw-r--r--lisp/progmodes/pascal.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el
index f4bc8d41a84..3cbfc5c8fd2 100644
--- a/lisp/progmodes/pascal.el
+++ b/lisp/progmodes/pascal.el
@@ -897,13 +897,13 @@ Return a list of two elements: (INDENT-TYPE INDENT-LEVEL)."
897 (and (not complete) 897 (and (not complete)
898 (looking-at pascal-sub-block-re)) 898 (looking-at pascal-sub-block-re))
899 (throw 'nesting 'block)) 899 (throw 'nesting 'block))
900 (;--No known statements
901 (bobp)
902 (throw 'nesting 'unknown))
900 (;--Found complete statement 903 (;--Found complete statement
901 (save-excursion (forward-sexp 1) 904 (save-excursion (forward-sexp 1)
902 (= (following-char) ?\;)) 905 (= (following-char) ?\;))
903 (setq complete t)) 906 (setq complete t))
904 (;--No known statements
905 (bobp)
906 (throw 'nesting 'unknown))
907 ))))) 907 )))))
908 908
909 ;; Return type of block and indent level. 909 ;; Return type of block and indent level.