Package: js2-mode Version: 0~20120726-3 Severity: important Dear Maintainer,
the Debian-specific initialization of this package does not work (at least with emacs24) and makes the package unusable without additional user intervention. The problems are that the package is searched for in a wrong directory and that the appropriate autoloads are not defined. The attached patch fixes all those problems for me. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages js2-mode depends on: ii emacs23 [emacsen] 23.4+1-4.1 ii emacs24 [emacsen] 24.3+1-2 ii emacsen-common 2.0.5 js2-mode recommends no packages. js2-mode suggests no packages. -- Configuration Files: /etc/emacs/site-start.d/50js2-mode.el changed [not included] -- no debconf information
diff --git a/debian/js2-mode.emacsen-startup b/debian/js2-mode.emacsen-startup index d89c8f1..b8ecbf5 100644 --- a/debian/js2-mode.emacsen-startup +++ b/debian/js2-mode.emacsen-startup @@ -8,11 +8,13 @@ (message "Package js2-mode removed but not purged. Skipping setup.")) ((not (file-exists-p (concat "/usr/share/" (symbol-name debian-emacs-flavor) - "/site-lisp/debian-el/js2-mode/js2-mode.elc"))) + "/site-lisp/js2-mode/js2-mode.elc"))) (message "Package debian-el not fully installed. Skipping setup.")) (t (debian-pkg-add-load-path-item (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/js2-mode")) + (autoload 'js2-minor-mode "js2-mode") + (autoload 'js2-mode "js2-mode") (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))))