debian/0000755000000000000000000000000012237373550007175 5ustar debian/compat0000644000000000000000000000000212237373550010373 0ustar 5 debian/js2-mode.emacsen-remove0000644000000000000000000000043712237373550013451 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/js2-mode FLAVOR=$1 PACKAGE=js2-mode case ${FLAVOR} in emacs|xemacs*|emacs19|emacs20|emacs21) exit 0 ;; esac echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} debian/js2-mode.dirs0000644000000000000000000000004312237373550011475 0ustar usr/share/emacs/site-lisp/js2-mode debian/js2-mode.install0000644000000000000000000000005712237373550012207 0ustar js2-mode.el usr/share/emacs/site-lisp/js2-mode debian/source/0000755000000000000000000000000012237373550010475 5ustar debian/source/format0000644000000000000000000000001412237373550011703 0ustar 3.0 (quilt) debian/js2-mode.emacsen-startup0000644000000000000000000000142312237373550013652 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50js2-mode.el ;; for the Debian js2-mode package (cond ((not (file-exists-p "/usr/share/emacs/site-lisp/js2-mode")) (message "Package js2-mode removed but not purged. Skipping setup.")) ((not (file-exists-p (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/js2-mode/js2-mode.elc"))) (message "Package js2-mode 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)))) debian/watch0000644000000000000000000000020512237373550010223 0ustar # Not working anymore #version=3 #opts=dversionmangle=s/^0~// http://code.google.com/p/js2-mode/ downloads/detail\?name=js2-(.*)\.el debian/control0000644000000000000000000000227312237373550010604 0ustar Source: js2-mode Section: editors Priority: optional Maintainer: Vincent Bernat Build-Depends: debhelper (>= 5) Standards-Version: 3.9.4 Homepage: http://code.google.com/p/js2-mode/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/js2-mode.git Vcs-Git: git://anonscm.debian.org/collab-maint/js2-mode.git Package: js2-mode Architecture: all Depends: emacs23 | emacsen, emacsen-common (>= 1.4.14), ${misc:Depends} Description: Emacs mode for editing Javascript programs This JavaScript editing mode supports: . - the full JavaScript language through version 1.7 - support for most Rhino and SpiderMonkey extensions from 1.5 to 1.7 - accurate syntax highlighting using a recursive-descent parser - syntax-error and strict-mode warning reporting - "bouncing" line indentation to choose among alternate indentation points - smart line-wrapping within comments and strings - code folding: - show some or all function bodies as {...} - show some or all block comments as /*...*/ - context-sensitive menu bar and popup menus - code browsing using the imenu' package - typing helpers (e.g. inserting matching braces/parens) - many customization options debian/changelog0000644000000000000000000000376512237373550011062 0ustar js2-mode (0~20120726-4) unstable; urgency=low * Fix Emacs startup file. Closes: #728693. Patch from Michal Sojka. -- Vincent Bernat Sat, 09 Nov 2013 09:50:35 +0100 js2-mode (0~20120726-3) unstable; urgency=low * Make comment-start buffer local. Closes: #714228. -- Vincent Bernat Sun, 28 Jul 2013 21:28:12 +0200 js2-mode (0~20120726-2) unstable; urgency=low * Don't build for emacs21. Closes: #717530. -- Vincent Bernat Mon, 22 Jul 2013 08:01:18 +0200 js2-mode (0~20120726-1) unstable; urgency=low * New upstream version. + We keep the original upstream. Closes: #632757. * Update debian/copyright. * Remove debian/watch: we don't have version to watch anymore. * Drop safe-local patch: applied upstream. * Bump Standards-Version. * Update Vcs-* fields in debian/control. * Update startup file. -- Vincent Bernat Thu, 18 Jul 2013 23:40:08 +0200 js2-mode (0~20090723b-2) unstable; urgency=low * Add a link to js2.el in emacs23/site-lisp/js2-mode to be able to access source code from help. Closes: #671576. * Bump Standards-Version. -- Vincent Bernat Sat, 05 May 2012 10:50:45 +0200 js2-mode (0~20090723b-1) unstable; urgency=low * Apply a patch from Dmitry Gutov to make some local variables safe. Closes: #607110. * Switch to 3.0 quilt format. * Acknowledge NMU from Hilko Bengen. * Bump Standards-Version to 3.9.2. -- Vincent Bernat Wed, 18 May 2011 13:08:37 +0200 js2-mode (0~20090723b-0.1) unstable; urgency=low * Non-maintainer upload * New upstream version (Closes: #583797) * Fixed watch file * Bumped Standards-Version as suggested by Lintian * Added ${misc:Depends} as suggested by Lintian -- Hilko Bengen Thu, 10 Jun 2010 21:56:54 +0200 js2-mode (0~20080616a-1) unstable; urgency=low * Initial release (Closes: #495213) -- Vincent Bernat Sat, 16 Aug 2008 12:03:23 +0200 debian/js2-mode.emacsen-install0000644000000000000000000000152612237373550013622 0ustar #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/js2-mode # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . FLAVOR=$1 PACKAGE=js2-mode case ${FLAVOR} in emacs|xemacs*|emacs19|emacs20|emacs21) exit 0 ;; esac echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} for i in $FILES; do ln -sf ${ELDIR}/$i . done cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el exit 0 debian/patches/0000755000000000000000000000000012237373550010624 5ustar debian/patches/series0000644000000000000000000000004712237373550012042 0ustar local-variable-comment-something.patch debian/patches/local-variable-comment-something.patch0000644000000000000000000000314612237373550020161 0ustar Make comment-start buffer local. Closes: #714228. From 2c27e3eb847ccbfd494d23d61098610c87d21804 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 25 Jul 2013 01:25:06 +0300 Subject: [PATCH] Make comment vars buffer-local Fixes http://code.google.com/p/js2-mode/issues/detail?id=129 --- js2-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index c74d2e6..6842056 100644 --- a/js2-mode.el +++ b/js2-mode.el @@ -10248,8 +10248,10 @@ Selecting an error will jump it to the corresponding source-buffer error. (define-derived-mode js2-mode prog-mode "Javascript-IDE" ;; FIXME: Should derive from js-mode. "Major mode for editing JavaScript code." - (setq comment-start "//" ; used by comment-region; don't change it - comment-end "") + ;; Used by comment-region; don't change it. + (set (make-local-variable 'comment-start) "//") + (set (make-local-variable 'comment-end) "") + (set (make-local-variable 'comment-start-skip) js2-comment-start-skip) (set (make-local-variable 'max-lisp-eval-depth) (max max-lisp-eval-depth 3000)) (set (make-local-variable 'indent-line-function) #'js2-indent-line) @@ -10278,7 +10280,6 @@ Selecting an error will jump it to the corresponding source-buffer error. c-line-comment-starter "//" c-paragraph-start js2-paragraph-start c-paragraph-separate "$" - comment-start-skip js2-comment-start-skip c-syntactic-ws-start js2-syntactic-ws-start c-syntactic-ws-end js2-syntactic-ws-end c-syntactic-eol js2-syntactic-eol) -- 1.8.1.6 debian/rules0000755000000000000000000000075312237373550010262 0ustar #!/usr/bin/make -f # Nothing to build build: build-arch build-indep build-arch build-indep: clean: dh_testdir dh_testroot dh_clean install: dh_testdir dh_testroot dh_install binary: binary-arch binary-indep binary-arch: binary-indep: install dh_testdir dh_testroot dh_installdocs dh_installemacsen dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb .PHONY: build build-arch build-indep binary binary-arch binary-indep clean debian/copyright0000644000000000000000000000156712237373550011141 0ustar This package was downloaded from http://code.google.com/p/js2-mode/ Files: js2-mode.el Copyright: Copyright (C) 2009, 2012 Free Software Foundation, Inc. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. File: debian/* Copyright: © 2008 Vincent Bernat License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'.