]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/js.el (js--proper-indentation): Handle the case where
authorChong Yidong <cyd@stupidchicken.com>
Sat, 12 Sep 2009 00:01:00 +0000 (00:01 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 12 Sep 2009 00:01:00 +0000 (00:01 +0000)
char-before is null.  Reported by Deniz Dogan.

lisp/ChangeLog
lisp/progmodes/js.el

index 45f6e33c5a5150b6abdcb363d3fa777ca19897f2..5c3c42cc1d2785cc30db04c02be2fc6153e03f58 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-11  Daniel Colascione <dan.colascione@gmail.com>
+
+       * progmodes/js.el (js--proper-indentation): Handle the case where
+       char-before is null.  Reported by Deniz Dogan.
+
 2009-09-11  Juanma Barranquero  <lekktu@gmail.com>
 
        * emacs-lisp/cl-macs.el (help-add-fundoc-usage): Declare.
index 37b7d531501c20f921a75e40a9c81b177817b46b..db8a52330c139066117b7f44d44441f9617635e1 100644 (file)
@@ -1753,7 +1753,7 @@ nil."
              (if (looking-at "[({[]\\s-*\\(/[/*]\\|$\\)")
                  (progn
                    (skip-syntax-backward " ")
-                   (when (= (char-before) ?\)) (backward-list))
+                  (when (eq (char-before) ?\)) (backward-list))
                    (back-to-indentation)
                    (cond (same-indent-p
                           (current-column))