diff options
author | Vincent Bernat <bernat@debian.org> | 2017-01-17 03:14:50 +0800 |
---|---|---|
committer | Vincent Bernat <bernat@debian.org> | 2017-01-17 03:14:50 +0800 |
commit | e52987c9a993391523bc14916d87cbe0e9ca3742 (patch) | |
tree | facfe74ea1581ffee7c5491ba7216b350ef6753f /debian/patches/autoload-auto-mode-alist.patch | |
parent | 008093447a8fb059e4b3e644e53b4d13d102b647 (diff) | |
parent | 3ac2569b5010684988ae1f7adbd628281b722705 (diff) |
js2-mode (0~20170116-1) unstable; urgency=medium
* New upstream release. Closes: #851599.
* d/control: bump Standards-Version.
* d/control: update Vcs-*.
[dgit import unpatched js2-mode 0~20170116-1]
Diffstat (limited to 'debian/patches/autoload-auto-mode-alist.patch')
-rw-r--r-- | debian/patches/autoload-auto-mode-alist.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/autoload-auto-mode-alist.patch b/debian/patches/autoload-auto-mode-alist.patch new file mode 100644 index 0000000..bfafacc --- /dev/null +++ b/debian/patches/autoload-auto-mode-alist.patch @@ -0,0 +1,18 @@ +Description: ensure js2-mode is used with JS file + This patch allows the package to keep the same behaviour as previous + versions. + +Index: js2-mode/js2-mode.el +=================================================================== +--- js2-mode.orig/js2-mode.el ++++ js2-mode/js2-mode.el +@@ -12422,6 +12422,9 @@ and variables NAMES will contain one ele + node) name))) + (if scope (js2-symbol-ast-node (js2-scope-get-symbol scope name))))) + ++;;;###autoload ++(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) ++ + (provide 'js2-mode) + + ;;; js2-mode.el ends here |