changeset 105409:5ae3de1af3a6

* cedet/semantic.el (semantic-mode): Use js-mode-hook for Javascript hook.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 03 Oct 2009 20:30:43 +0000
parents cc49bd9e784b
children 38782a5dda5e
files lisp/ChangeLog lisp/cedet/semantic.el
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Oct 03 19:43:07 2009 +0000
+++ b/lisp/ChangeLog	Sat Oct 03 20:30:43 2009 +0000
@@ -11,6 +11,7 @@
 
 	* cedet/semantic.el (semantic-mode): Handle
 	srecode-template-mode-hook as well.
+	(semantic-mode): Use js-mode-hook for Javascript hook.
 
 	* cedet/srecode/template.el: Remove hook variable.
 
--- a/lisp/cedet/semantic.el	Sat Oct 03 19:43:07 2009 +0000
+++ b/lisp/cedet/semantic.el	Sat Oct 03 20:30:43 2009 +0000
@@ -1048,7 +1048,7 @@
 	    (semanticdb-load-ebrowse-caches)))
 	(add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
 	;; Add mode-local hooks
-	(add-hook 'javascript-mode-hook 'wisent-javascript-setup-parser)
+	(add-hook 'js-mode-hook 'wisent-javascript-setup-parser)
 	(add-hook 'ecmascript-mode-hook 'wisent-javascript-setup-parser)
 	(add-hook 'java-mode-hook 'wisent-java-default-setup)
 	(add-hook 'scheme-mode-hook 'semantic-default-scheme-setup)
@@ -1060,7 +1060,7 @@
 	(add-hook 'srecode-template-mode-hook 'srecode-template-setup-parser))
     ;; Disable all Semantic features.
     (remove-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
-    (remove-hook 'javascript-mode-hook 'wisent-javascript-setup-parser)
+    (remove-hook 'js-mode-hook 'wisent-javascript-setup-parser)
     (remove-hook 'ecmascript-mode-hook 'wisent-javascript-setup-parser)
     (remove-hook 'java-mode-hook 'wisent-java-default-setup)
     (remove-hook 'scheme-mode-hook 'semantic-default-scheme-setup)