From: Chong Yidong Date: Sat, 12 Sep 2009 00:01:00 +0000 (+0000) Subject: * progmodes/js.el (js--proper-indentation): Handle the case where X-Git-Tag: emacs-pretest-23.1.90~1368 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34cab3d9c1c6d396f3d7cb5876417ca3379f5254;p=emacs.git * progmodes/js.el (js--proper-indentation): Handle the case where char-before is null. Reported by Deniz Dogan. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 45f6e33c5a5..5c3c42cc1d2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-09-11 Daniel Colascione + + * progmodes/js.el (js--proper-indentation): Handle the case where + char-before is null. Reported by Deniz Dogan. + 2009-09-11 Juanma Barranquero * emacs-lisp/cl-macs.el (help-add-fundoc-usage): Declare. diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 37b7d531501..db8a52330c1 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -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))