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
7c9097d0
Commit
7c9097d0
authored
Oct 26, 1996
by
Richard M. Stallman
Browse files
(pascal-indent-declaration): Avoid infinite loop
if edpos is at end of buffer.
parent
91f64ec2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/progmodes/pascal.el
lisp/progmodes/pascal.el
+2
-1
No files found.
lisp/progmodes/pascal.el
View file @
7c9097d0
...
...
@@ -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
)
...
...
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