From 34cab3d9c1c6d396f3d7cb5876417ca3379f5254 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 12 Sep 2009 00:01:00 +0000 Subject: [PATCH] * progmodes/js.el (js--proper-indentation): Handle the case where char-before is null. Reported by Deniz Dogan. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/js.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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)) -- 2.39.2