magnars/expand-region.el — pull request #77 by gvol (2012-10-21 10:00:40+00:00)
Title: Remove advice for js-mode

I don't use javascript, so I may be totally wrong on all this. I noticed the defadvice and thought it was weird that there wouldn't be a hook. In bzr emacs, and in Emacs 24.1, `javascript-mode` is an alias to `js-mode` which has a hook `js-mode-hook`. I checked in Emacs 23.1, but it doesn't have `javascript-mode` nor `js-mode`. [Emacswiki](http://emacswiki.org/emacs/JavaScriptMode) says it was added in 23.2 which I don't have installed. Anyway, if early versions of `javascript-mode` doesn't have `js-mode-hook` feel free to reject this pull request, otherwise I think it would be better to not have advice before it gets into Emacs.

P.S. It seems there are as many javascript modes as python modes. :-)