Mercurial > emacs
changeset 104966:754f505b6d27
* progmodes/js.el (js--proper-indentation): Handle the case where
char-before is null. Reported by Deniz Dogan.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 12 Sep 2009 00:01:00 +0000 |
parents | 5d471f2d8534 |
children | f318da2703ab |
files | lisp/ChangeLog lisp/progmodes/js.el |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Fri Sep 11 22:59:36 2009 +0000 +++ b/lisp/ChangeLog Sat Sep 12 00:01:00 2009 +0000 @@ -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.
--- a/lisp/progmodes/js.el Fri Sep 11 22:59:36 2009 +0000 +++ b/lisp/progmodes/js.el Sat Sep 12 00:01:00 2009 +0000 @@ -1753,7 +1753,7 @@ (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))