diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2012-10-08 18:20:59 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2012-10-08 18:20:59 +0200 |
commit | 1337353856dbf0dcfe8378ccf96f26442eee73e9 (patch) | |
tree | 7be2ce3b03de25edef2452dfa73d224bc8bb7c5f /lisp/generic-x.el | |
parent | 6b49792308dd84fdea8ae8daff5abdad0c978509 (diff) | |
download | emacs-1337353856dbf0dcfe8378ccf96f26442eee73e9.tar.gz emacs-1337353856dbf0dcfe8378ccf96f26442eee73e9.tar.bz2 emacs-1337353856dbf0dcfe8378ccf96f26442eee73e9.zip |
lisp/generic-x.el: Make javascript-generic-mode an obsolete alias of js-mode.
Diffstat (limited to 'lisp/generic-x.el')
-rw-r--r-- | lisp/generic-x.el | 79 |
1 files changed, 3 insertions, 76 deletions
diff --git a/lisp/generic-x.el b/lisp/generic-x.el index ce1599b9010..878021ec5c5 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -646,83 +646,10 @@ like an INI file. You can add this hook to `find-file-hook'." "Generic mode for Sys V pkginfo files.")) ;; Javascript mode -;; Includes extra keywords from Armando Singer [asinger@MAIL.COLGATE.EDU] +;; Obsolete; defer to js-mode from js.el. (when (memq 'javascript-generic-mode generic-extras-enable-list) - -(define-generic-mode javascript-generic-mode - '("//" ("/*" . "*/")) - '("break" - "case" - "continue" - "default" - "delete" - "do" - "else" - "export" - "for" - "function" - "if" - "import" - "in" - "new" - "return" - "switch" - "this" - "typeof" - "var" - "void" - "while" - "with" - ;; words reserved for ECMA extensions below - "catch" - "class" - "const" - "debugger" - "enum" - "extends" - "finally" - "super" - "throw" - "try" - ;; Java Keywords reserved by JavaScript - "abstract" - "boolean" - "byte" - "char" - "double" - "false" - "final" - "float" - "goto" - "implements" - "instanceof" - "int" - "interface" - "long" - "native" - "null" - "package" - "private" - "protected" - "public" - "short" - "static" - "synchronized" - "throws" - "transient" - "true") - '(("^\\s-*function\\s-+\\([A-Za-z0-9_]+\\)" - (1 font-lock-function-name-face)) - ("^\\s-*var\\s-+\\([A-Za-z0-9_]+\\)" - (1 font-lock-variable-name-face))) - '("\\.js\\'") - (list - (function - (lambda () - (setq imenu-generic-expression - '((nil "^function\\s-+\\([A-Za-z0-9_]+\\)" 1) - ("*Variables*" "^var\\s-+\\([A-Za-z0-9_]+\\)" 1)))))) - "Generic mode for JavaScript files.")) + (define-obsolete-function-alias 'javascript-generic-mode 'js-mode "24.3") + (define-obsolete-variable-alias 'javascript-generic-mode-hook 'js-mode-hook "24.3")) ;; VRML files (when (memq 'vrml-generic-mode generic-extras-enable-list) |