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
0b171628
Commit
0b171628
authored
Nov 23, 1993
by
Richard M. Stallman
Browse files
(c-indent-region): Don't goto-char sexpend if it's nil.
parent
6ebbf1dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lisp/progmodes/c-mode.el
lisp/progmodes/c-mode.el
+7
-5
No files found.
lisp/progmodes/c-mode.el
View file @
0b171628
...
...
@@ -1211,11 +1211,13 @@ If within a string or comment, move by sentences instead of statements."
(
error
(
setq
sexpend
nil
)
(
goto-char
nextline
)))
(
skip-chars-forward
" \t\n"
))
;; Make sure the sexp we found really starts on the
;; current line and extends past it.
(
goto-char
sexpend
)
(
backward-sexp
1
)
(
setq
sexpbeg
(
point
)))
(
if
sexpend
(
progn
;; Make sure the sexp we found really starts on the
;; current line and extends past it.
(
goto-char
sexpend
)
(
backward-sexp
1
)
(
setq
sexpbeg
(
point
)))))
;; If that sexp ends within the region,
;; indent it all at once, fast.
(
if
(
and
sexpend
(
>
sexpend
nextline
)
(
<=
sexpend
endmark
)
...
...
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