emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/mhtml-mode 3adbe84 08/11: make js.el respect prog-


From: Tom Tromey
Subject: [Emacs-diffs] feature/mhtml-mode 3adbe84 08/11: make js.el respect prog-first-column
Date: Thu, 23 Mar 2017 23:15:04 -0400 (EDT)

branch: feature/mhtml-mode
commit 3adbe849b61c3b6dc265aae3bbbdec9d9312fcf8
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>

    make js.el respect prog-first-column
    
    * lisp/progmodes/js.el (js--proper-indentation): Call prog-first-column.
---
 lisp/progmodes/js.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index aed42a8..84c9111 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -53,6 +53,7 @@
 (require 'moz nil t)
 (require 'json nil t)
 (require 'sgml-mode)
+(require 'prog-mode)
 
 (eval-when-compile
   (require 'cl-lib)
@@ -2124,7 +2125,7 @@ indentation is aligned to that column."
 
           ((js--continued-expression-p)
            (+ js-indent-level js-expr-indent-offset))
-          (t 0))))
+          (t (prog-first-column)))))
 
 ;;; JSX Indentation
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]