mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-11 10:20:33 -08:00
* lisp/progmodes/js.el (js-indent-line): Don't mix columns and chars.
Fixes: debbugs:17619
This commit is contained in:
parent
8889b935d1
commit
ffa8a2db08
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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"
|
||||
|
|
|
|||
|
|
@ -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))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue