Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c8d3ad6a
Commit
c8d3ad6a
authored
Jan 19, 1999
by
Richard M. Stallman
Browse files
(pascal-calculate-indent): Code with an invalid
beginning could cause Emacs to hang. Fixed.
parent
265519e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/progmodes/pascal.el
lisp/progmodes/pascal.el
+3
-3
No files found.
lisp/progmodes/pascal.el
View file @
c8d3ad6a
...
@@ -897,13 +897,13 @@ Return a list of two elements: (INDENT-TYPE INDENT-LEVEL)."
...
@@ -897,13 +897,13 @@ Return a list of two elements: (INDENT-TYPE INDENT-LEVEL)."
(
and
(
not
complete
)
(
and
(
not
complete
)
(
looking-at
pascal-sub-block-re
))
(
looking-at
pascal-sub-block-re
))
(
throw
'nesting
'block
))
(
throw
'nesting
'block
))
(
;--No known statements
(
bobp
)
(
throw
'nesting
'unknown
))
(
;--Found complete statement
(
;--Found complete statement
(
save-excursion
(
forward-sexp
1
)
(
save-excursion
(
forward-sexp
1
)
(
=
(
following-char
)
?\;
))
(
=
(
following-char
)
?\;
))
(
setq
complete
t
))
(
setq
complete
t
))
(
;--No known statements
(
bobp
)
(
throw
'nesting
'unknown
))
)))))
)))))
;; Return type of block and indent level.
;; Return type of block and indent level.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment