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
ffa8a2db
Commit
ffa8a2db
authored
May 31, 2014
by
Stefan Monnier
Browse files
* lisp/progmodes/js.el (js-indent-line): Don't mix columns and chars.
Fixes: debbugs:17619
parent
8889b935
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/js.el
lisp/progmodes/js.el
+1
-1
No files found.
lisp/ChangeLog
View file @
ffa8a2db
2014-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/js.el (js-indent-line): Don't mix columns and chars
(bug#17619).
2014-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
* subr.el (set-transient-map): Don't wait for some "nested"
...
...
lisp/progmodes/js.el
View file @
ffa8a2db
...
...
@@ -1907,7 +1907,7 @@ In particular, return the buffer position of the first `for' kwd."
(interactive)
(let* ((parse-status
(save-excursion (syntax-ppss (point-at-bol))))
(
offset
(
-
(
current-column
)
(
current
-indentation
))))
(offset (- (
point) (save-excursion (back-to
-indentation)
(point))
)))
(indent-line-to (js--proper-indentation parse-status))
(when (> offset 0) (forward-char offset))))
...
...
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