debian/0000755000000000000000000000000011723402020007155 5ustar debian/emacsen-install0000644000000000000000000000642711723401230012172 0ustar #! /bin/bash -e # /usr/lib/emacsen-common/packages/install/develock-el # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . # # Patched by Roland Mas to add support for lists # of flavor-dependently included/excluded files FLAVOR=$1 STAMPFILE=develock.elc PACKAGE=develock-el # INCLUDED_emacs20="" # INCLUDED_emacs21="" # INCLUDED_xemacs21="" # INCLUDE_emacs_snapshot="" # EXCLUDED_emacs20="" # EXCLUDED_emacs21="" # EXCLUDED_xemacs21="" # EXCLUDED_emacs_snapshot="" eval included_here=\$$(echo INCLUDED_$FLAVOR | tr - _) eval excluded_here=\$$(echo EXCLUDED_$FLAVOR | tr - _) eval sourceonly_here=\$$(echo SOURCEONLY_$FLAVOR | tr - _) included_all=$(for i in ${!INCLUDED_*} ; do eval echo \$$i done | sort -u) excluded_all=$(for i in ${!EXCLUDED_*} ; do eval echo \$$i done | sort -u) sourceonly_all=$(for i in ${!SOURCEONLY_*} ; do eval echo \$$i done | sort -u) if [ ${FLAVOR} = emacs ]; then exit 0; fi # Install-info-altdir does not actually exist. # Maybe somebody will write it. #if test -x /usr/sbin/install-info-altdir; then # echo install/${PACKAGE}: install Info links for ${FLAVOR} # install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz #fi LOG=`tempfile -pelc_ -s.log -m644` ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} if test -e "${ELCDIR}/${STAMPFILE}"; then echo "${PACKAGE} files already compiled in ${ELCDIR}." rm -f ${LOG} exit fi echo install/${PACKAGE}: Handling ${FLAVOR}, logged in ${LOG} if [ -z "$FLAGS" ] ; then FLAGS="-q -no-site-file --no-site-file -batch -l path.el -f batch-byte-compile" fi install -m 755 -d ${ELCDIR} cd ${ELDIR} # Now to compute the list of files to install... FILES=$(ls -1 *.el) # Here we have all of them PATTERN="" for i in $included_all $excluded_all $sourceonly_all; do [ ! -z "$PATTERN" ] && PATTERN="${PATTERN}\|" PATTERN="${PATTERN}^$i\$" done FILES2=$FILES if [ ! -z "$PATTERN" ] ; then FILES=$(for i in $FILES2 ; do echo $i | grep -v $PATTERN || true ; done) fi # Here we only have those not explicitly included or excluded by any flavour FILES="$FILES $included_here" # Here we also have those included for the current flavour for i in $excluded_all ; do include_i="yes" for j in $excluded_here ; do [ $i = $j ] && include_i="no" done [ $include_i = "yes" ] && FILES="$FILES $i" done # And now we have those excluded by other flavours but not the current one FILES=$(for i in $FILES ; do echo $i ; done | sort -u) # And now for my last trick... The list is now uniquified! # Symlinks instead of copying... cd ${ELCDIR} for i in $FILES $sourceonly_all; do ln -fs /usr/share/emacs/site-lisp/${PACKAGE}/$i done cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF if test "${APPEND_LOAD_PATH}" != "" then cat << EOF >> path.el (setq load-path (append ${APPEND_LOAD_PATH} load-path)) EOF fi echo ${FLAVOR} ${FLAGS} ${FILES} >> ${LOG} "${FLAVOR}" ${FLAGS} ${FILES} >> ${LOG} 2>&1 egrep -s -e "While compiling|\*\*" ${LOG} || /bin/true echo install/${PACKAGE}: Deleting ${LOG} rm -f path.el ${LOG} exit 0 debian/compat0000644000000000000000000000000211723401230010355 0ustar 9 debian/gbp.conf0000644000000000000000000000007111723401230010574 0ustar [DEFAULT] pristine-tar = True filter-pristine-tar = True debian/dirs0000644000000000000000000000004611723401230010043 0ustar usr/share/emacs/site-lisp/develock-el debian/copyright0000644000000000000000000000304211723401230011111 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: develock-el Upstream-Contact: Katsumi Yamaoka Jun'ichi Shiono Yasutaka SHINDOH Oscar Bonilla Source: http://www.jpl.org/elips/develock.el.gz Files: develock.el Copyright: Copyright © 2001, 2002, 2003, 2005, 2006, 2007, 2008 Katsumi Yamaoka License: GPL Develock 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, or (at your option) any later version. . Develock 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. . You should have received a copy of the GNU General Public License along with Develock; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. Files: debian/* Copyright: Copyright © 2003-2008 OHASHI Akira Copyright © 2012 Mehdi Dogguy License: GPL On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.debian/emacsen-startup0000644000000000000000000000227711723401230012225 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file for the Debian develock-el package ;; ;; Originally contributed by Nils Naumann ;; Modified by Dirk Eddelbuettel ;; Adapted for dh-make by Jim Van Zandt ;; The develock-el package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; xemacs19, emacs20, xemacs20...). The compiled code is then ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (if (not (file-exists-p "/usr/share/emacs/site-lisp/develock-el")) (message "Package develock-el removed but not purged. Skipping setup.") (debian-pkg-add-load-path-item (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/develock-el")) (cond ((featurep 'xemacs) (require 'develock) ;; `turn-on-develock' is equivalent to `turn-on-font-lock', ;; except that it does not highlight the startup screen. (add-hook 'lisp-interaction-mode-hook 'turn-on-develock) (add-hook 'mail-setup-hook 'turn-on-font-lock)) ((>= emacs-major-version 20) (require 'develock) (global-font-lock-mode 1)))) debian/changelog0000644000000000000000000001041011723401554011036 0ustar develock-el (0.39-1) unstable; urgency=low * New upstream release. * New maintainer (Closes: #654942) * Re-do packaging using DH9. - Bump Standards-Version to 3.9.3 - Conform to machine-readable copyright format 1.0 - Convert to 3.0 (quilt) source format * Make develock-el aware of some other modes (Closes: #633564). - OCaml modes (caml-mode and tuareg-mode) - Coq mode - LaTeX mode * Add Vcs-{Browser,Git} control fields. -- Mehdi Dogguy Wed, 29 Feb 2012 11:52:11 +0100 develock-el (0.36-2) unstable; urgency=low * emacsen-startup: Use `global-font-lock-mode' with positive argument. (closes: #446083) -- OHASHI Akira Mon, 04 Aug 2008 10:32:57 +0900 develock-el (0.36-1) unstable; urgency=low * New upstream release * control.in (Standards-Version): Increase to 3.8.0. -- OHASHI Akira Tue, 24 Jun 2008 22:55:21 +0900 develock-el (0.35-1) unstable; urgency=low * New upstream release -- OHASHI Akira Fri, 24 Aug 2007 10:19:00 +0900 develock-el (0.34-2) unstable; urgency=low * control.in (develock-el/Depends): Use emacs instead of emacs21. -- OHASHI Akira Tue, 07 Aug 2007 17:53:34 +0900 develock-el (0.34-1) unstable; urgency=low * New upstream release * copyright (Upstream Authors): Add Oscar Bonilla. -- OHASHI Akira Fri, 29 Jun 2007 09:26:12 +0900 develock-el (0.31-1) unstable; urgency=low * New upstream release -- OHASHI Akira Fri, 30 Mar 2007 13:32:35 +0900 develock-el (0.30-1) unstable; urgency=low * New upstream release -- OHASHI Akira Tue, 3 Oct 2006 12:18:22 +0900 develock-el (0.29-1) unstable; urgency=low * New upstream release (closes: #335611) * control.in (Standards-Version): Bump up to 3.7.2. (Build-Depends-Indep): Abolish. (Build-Depends): New field. -- OHASHI Akira Mon, 25 Sep 2006 19:41:55 +0900 develock-el (0.27-2) unstable; urgency=low * rules: Use cdbs to build. * control.in: New file for cdbs. * emacsen-install: Rewrite to a new de facto standard format. (closes: #330784) * emacsen-startup: Use debian-emacs-flavor instead of flavor. -- OHASHI Akira Tue, 21 Feb 2006 14:02:29 +0900 develock-el (0.27-1) unstable; urgency=low * New upstream release * emacsen-startup: Support emacs-snapshot. -- OHASHI Akira Thu, 9 Feb 2006 14:44:50 +0900 develock-el (0.26-2) unstable; urgency=low * control (Standards-Version): Increased to 3.6.2. * control (develock-el/Depends): Use `emacsen' instead of `xemacs21'. (closes: #321994) -- OHASHI Akira Sat, 10 Dec 2005 09:34:16 +0900 develock-el (0.26-1) unstable; urgency=low * New upstream release (closes: #309404) -- OHASHI Akira Wed, 18 May 2005 10:17:28 +0900 develock-el (0.25-1) unstable; urgency=low * New upstream release -- OHASHI Akira Thu, 10 Mar 2005 11:13:49 +0900 develock-el (0.23-5) unstable; urgency=low * emacsen-install: Fix for the broken installation. -- OHASHI Akira Fri, 13 Aug 2004 18:03:50 +0900 develock-el (0.23-4) unstable; urgency=low * emacsen-startup: Don't add uncompiled files to the load-path. -- OHASHI Akira Thu, 12 Aug 2004 12:26:16 +0900 develock-el (0.23-3) unstable; urgency=low * emacsen-startup: Use `debian-pkg-add-load-path-item' and add uncompiled files to the load-path. * emacsen-install: Enable SITEFLAG and output a log to tempfile. -- OHASHI Akira Fri, 6 Aug 2004 11:24:53 +0900 develock-el (0.23-2) unstable; urgency=low * control (Depends): Don't depend `emacs20'. (closes: #232749) -- OHASHI Akira Mon, 16 Feb 2004 14:04:34 +0900 develock-el (0.23-1) unstable; urgency=low * New upstream release -- OHASHI Akira Fri, 5 Dec 2003 16:02:04 +0900 develock-el (0.22-1) unstable; urgency=low * New upstream release * control (Standards-Version): Increased to 3.6.1. -- OHASHI Akira Thu, 13 Nov 2003 11:52:25 +0900 develock-el (0.21-1) unstable; urgency=low * Initial Release. (closes: #204658) -- OHASHI Akira Tue, 19 Aug 2003 22:32:48 +0900 debian/patches/0000755000000000000000000000000011723401350010611 5ustar debian/patches/series0000644000000000000000000000002611723401350012024 0ustar 0001-More-modes.patch debian/patches/0001-More-modes.patch0000644000000000000000000001165411723401350014226 0ustar From: Mehdi Dogguy Date: Wed, 29 Feb 2012 11:46:58 +0100 Subject: More modes --- develock.el | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 96 insertions(+), 4 deletions(-) diff --git a/develock.el b/develock.el index d7a107f..31ad0fb 100644 --- a/develock.el +++ b/develock.el @@ -31,10 +31,10 @@ ;; Develock is a minor mode which provides the ability to make font- ;; lock highlight leading and trailing whitespace, long lines and ;; oddities in the file buffer for Lisp modes, ChangeLog mode, Texinfo -;; mode, C modes, Java mode, Jde-mode , CPerl mode, Perl mode, HTML -;; modes, some Mail modes, Tcl mode and Ruby mode. Here is an example -;; of how to set up your startup file (possibly .emacs) to use -;; Develock: +;; mode, C modes, Ocaml modes, Coq mode, Java mode, Jde-mode , CPerl +;; mode, Perl mode, HTML modes, some Mail modes, Tcl mode and Ruby +;; mode. Here is an example of how to set up your startup file +;; (possibly .emacs) to use Develock: ;; ;;(cond ((featurep 'xemacs) ;; (require 'develock) @@ -408,6 +408,10 @@ That would be defenseless to spammers." 'c-mode 79 'c++-mode 79 'java-mode 79 + 'caml-mode 79 + 'tuareg-mode 79 + 'coq-mode 79 + 'latex-mode 79 'jde-mode 79 'html-mode 79 'html-helper-mode 79 @@ -552,6 +556,18 @@ try the following advice in your startup file. (defvar c-font-lock-keywords-x nil "Extraordinary level font-lock keywords for the C modes.") +(defvar caml-font-lock-keywords-x nil + "Extraordinary level font-lock keywords for the Caml mode.") + +(defvar tuareg-font-lock-keywords-x nil + "Extraordinary level font-lock keywords for the Tuareg mode.") + +(defvar coq-font-lock-keywords-x nil + "Extraordinary level font-lock keywords for the Coq mode.") + +(defvar latex-font-lock-keywords-x nil + "Extraordinary level font-lock keywords for the LaTeX mode.") + (defvar java-font-lock-keywords-x nil "Extraordinary level font-lock keywords for the Java mode.") @@ -592,6 +608,14 @@ try the following advice in your startup file. develock-c-font-lock-keywords) (c++-mode c-font-lock-keywords-x develock-c-font-lock-keywords) + (caml-mode caml-font-lock-keywords-x + develock-caml-font-lock-keywords) + (tuareg-mode tuareg-font-lock-keywords-x + develock-tuareg-font-lock-keywords) + (coq-mode coq-font-lock-keywords-x + develock-coq-font-lock-keywords) + (latex-mode latex-font-lock-keywords-x + develock-latex-font-lock-keywords) (java-mode java-font-lock-keywords-x develock-java-font-lock-keywords) (jde-mode java-font-lock-keywords-x @@ -950,6 +974,74 @@ Each element should be triple symbols of the following form: :group 'develock :group 'font-lock) +(defcustom develock-caml-font-lock-keywords + '(;; a long line + (develock-find-long-lines + (1 'develock-long-line-1 t) + (2 'develock-long-line-2 t)) + ;; trailing whitespace + ("[^\t\n ]\\([\t ]+\\)$" + (1 'develock-whitespace-1 t)) + ;; only tabs or spaces in the line + ("^[\t ]+$" + (0 'develock-whitespace-2 append))) + "Extraordinary level highlighting for the Caml mode." + :type develock-keywords-custom-type + :set 'develock-keywords-custom-set + :group 'develock + :group 'font-lock) + +(defcustom develock-tuareg-font-lock-keywords + '(;; a long line + (develock-find-long-lines + (1 'develock-long-line-1 t) + (2 'develock-long-line-2 t)) + ;; trailing whitespace + ("[^\t\n ]\\([\t ]+\\)$" + (1 'develock-whitespace-1 t)) + ;; only tabs or spaces in the line + ("^[\t ]+$" + (0 'develock-whitespace-2 append))) + "Extraordinary level highlighting for the Tuareg mode." + :type develock-keywords-custom-type + :set 'develock-keywords-custom-set + :group 'develock + :group 'font-lock) + +(defcustom develock-coq-font-lock-keywords + '(;; a long line + (develock-find-long-lines + (1 'develock-long-line-1 t) + (2 'develock-long-line-2 t)) + ;; trailing whitespace + ("[^\t\n ]\\([\t ]+\\)$" + (1 'develock-whitespace-1 t)) + ;; only tabs or spaces in the line + ("^[\t ]+$" + (0 'develock-whitespace-2 append))) + "Extraordinary level highlighting for the Coq mode." + :type develock-keywords-custom-type + :set 'develock-keywords-custom-set + :group 'develock + :group 'font-lock) + +(defcustom develock-latex-font-lock-keywords + '(;; a long line + (develock-find-long-lines + (1 'develock-long-line-1 t) + (2 'develock-long-line-2 t)) + ;; trailing whitespace + ("[^\t\n ]\\([\t ]+\\)$" + (1 'develock-whitespace-1 t)) + ;; only tabs or spaces in the line + ("^[\t ]+$" + (0 'develock-whitespace-2 append))) + "Extraordinary level highlighting for the LaTeX mode." + :type develock-keywords-custom-type + :set 'develock-keywords-custom-set + :group 'develock + :group 'font-lock) + (defcustom develock-java-font-lock-keywords '(;; a long line (develock-find-long-lines -- debian/control0000644000000000000000000000144711723401637010603 0ustar Source: develock-el Section: editors Priority: optional Maintainer: Mehdi Dogguy Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3 Homepage: http://www.jpl.org/elips/ Vcs-Browser: http://git.debian.org/?p=collab-maint/develock-el.git Vcs-Git: git://git.debian.org/git/collab-maint/develock-el.git Package: develock-el Architecture: all Depends: ${misc:Depends}, emacs | emacsen Description: additional font-lock keywords for the developers on Emacs Develock is a minor mode which provides the ability to make font- lock highlight leading and trailing whitespace, long lines and oddities in the file buffer for Lisp modes, ChangeLog mode, Texinfo mode, C modes, OCaml modes, Coq mode, LaTeX mode, Java mode, Jde-mode, CPerl mode, Perl mode, HTML modes and some Mail modes. debian/emacsen-remove0000644000000000000000000000074111723401230012012 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/develock-el FLAVOR=$1 PACKAGE=develock-el if [ ${FLAVOR} != emacs ]; then # if test -x /usr/sbin/install-info-altdir; then # echo remove/${PACKAGE}: removing Info links for ${FLAVOR} # install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/develock-el.info.gz # fi echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi debian/rules0000755000000000000000000000003611723401230010236 0ustar #!/usr/bin/make -f %: dh $@ debian/source/0000755000000000000000000000000011723401324010463 5ustar debian/source/format0000644000000000000000000000001411723401324011671 0ustar 3.0 (quilt) debian/install0000644000000000000000000000006211723402020010544 0ustar develock.el usr/share/emacs/site-lisp/develock-el