debian/0000755000000000000000000000000012004754131007163 5ustar debian/emacsen-remove0000644000000000000000000000040112004754131012007 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/tuareg-mode FLAVOR=$1 PACKAGE=tuareg-mode if [ ${FLAVOR} != emacs ]; then echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi debian/tuareg-mode.docs0000644000000000000000000000000712004754131012243 0ustar README debian/changelog0000644000000000000000000003737012004754131011047 0ustar tuareg-mode (1:2.0.6-3) unstable; urgency=low * Updated the emacsen-install file from the current template shipped with dh-make to fix an upgrade failure from squeeze (closes: #681823). Thanks to Hilko Bengen for the patch! -- Ralf Treinen Sat, 28 Jul 2012 14:16:52 +0200 tuareg-mode (1:2.0.6-2) unstable; urgency=low * debian/emacsen-install: fix tuareg-use-smie (f -> nil). Thanks to Kevin Ryde (closes: #676860). * debian control: first choice of emacsen is emacs23, not xemacs21 * new patch emacs21: add an (required 'derived) in case it is not loaded, needed by emacs21. Thanks to Kevin Ryde for the patch (closes: #676858). -- Ralf Treinen Tue, 19 Jun 2012 09:46:23 +0200 tuareg-mode (1:2.0.6-1) unstable; urgency=low * New upstream version. * debian/watch: also accept .tar.gz files * upstream does noy longer distribute append-tuareg.el. Put our own version. Drop patches to append-tuareg.el that are hence no longer necessary: 0001-camldebug-of-tuareg-mode-is-renamed-to-camldebug-tua.patch 0003-narrow-down-auto-alist * Drop patch 0002-Use-locally-installed-documentation which is no longer relevant as we do not have any local documentation * Add patch ocaml-path to fix the ocaml library path according to the debian ocaml policy. * debian/rules: no more files custom-tuareg.el or sym-lock.el to install * installation: do not compile for xemacs. * debian/emacsen-install: create in ELC directory symbolic links for the corresponding .el files (closes: #671573) * debian/copyright: remove mention of ocamlspot.el which is no longer part of the upstream distribution. -- Ralf Treinen Wed, 06 Jun 2012 22:00:20 +0200 tuareg-mode (1:2.0.4-4) unstable; urgency=low * Bring files tuareg.el and append-tuareg.el to upstream version 2.0.4. These two files were left in version 2.0.1 due to an accident. * Patch 0003-narrow-down-auto-alist: regexp must apply only at the end of a filename. Thanks to Kevin Ryde for the patch (closes: #671558). * debian/control: drop starting article in short description * standards-version 3.9.3 - debian/copyright: migrate to machine-readable format 1.0 * debian/emacsen-setloadpath: use debian-pkg-add-load-path-item, instead of explicit setting of the load-path variable, to extend the load path (closes: #671557). -- Ralf Treinen Sun, 06 May 2012 14:45:23 +0200 tuareg-mode (1:2.0.4-3) unstable; urgency=low * Really upload to sid. -- Ralf Treinen Tue, 08 Feb 2011 22:47:36 +0100 tuareg-mode (1:2.0.4-2) experimental; urgency=low * Upload to sid. -- Ralf Treinen Tue, 08 Feb 2011 21:49:55 +0100 tuareg-mode (1:2.0.4-1) experimental; urgency=low * New upstream version. * Byte-compile emacs files also on xemacs21, except for camldebug-tuareg.el -- Ralf Treinen Thu, 18 Nov 2010 22:16:56 +0100 tuareg-mode (1:2.0.2-1) experimental; urgency=low * New upstream version. * Removed patch 0003-Narrow-autoload-pattern-down-to-what-is-really-neede since integrated by upstream. * Standards-version 3.9.1 (no change) -- Ralf Treinen Wed, 22 Sep 2010 09:03:23 +0200 tuareg-mode (1:2.0.1-1) unstable; urgency=low * New upstream version. This version fixes a bug with byte-compilation under emacs21 and emacs22. -- Ralf Treinen Thu, 27 May 2010 07:54:23 +0200 tuareg-mode (1:2.0.0-2) unstable; urgency=low [ Stéphane Glondu ] * New upstream location, update debian/{watch,control,copyright} accordingly [ Ralf Treinen ] * Do not byte-compile on emacs21, emacs22, and xemacs21. This fixes the urgency of bug #582981, though that bug remains open. -- Ralf Treinen Tue, 25 May 2010 20:06:00 +0200 tuareg-mode (1:2.0.0-1) unstable; urgency=low [ Stéphane Glondu ] * New upstream release - update debian/copyright and debian/watch * Switch packaging to git * Switch debian/rules to dh with overrides * Switch source package format to 3.0 (quilt) * debian/control: - add myself to Uploaders, remove Remi and Stefano - update Homepage - bump Standards-Version to 3.8.4 [ Ralf Treinen ] * changed section to ocaml -- Stéphane Glondu Mon, 24 May 2010 19:54:44 +0200 tuareg-mode (1:1.45.6-2) unstable; urgency=low [ Ralf Treinen ] * Standards-Version 3.8.0 (no change) * Cleanup Uploaders field * debian/copyright: point to GPL-2 file. [ Mehdi Dogguy ] * tuareg-mode now recommands/enhances ocaml-interp instead of ocaml -- Ralf Treinen Fri, 27 Feb 2009 22:08:12 +0100 tuareg-mode (1:1.45.6-1) unstable; urgency=low [ Ralf Treinen ] * New upstream release, fixes a bug concerning indentation of if-then-else (closes: Bug#450741), and elisp compiler warnings (closes: Bug#456006). * Standards-Version 3.7.3 (no change). [ Stefano Zacchiroli ] * fix vcs-svn field to point just above the debian/ dir -- Ralf Treinen Sun, 13 Jan 2008 13:23:05 +0100 tuareg-mode (1:1.45.5-1) unstable; urgency=low * New upstream release. * debian/control: add Homepage field. * Proper end-of-string recognition in auto-mode file pattern. Thanks to Trent W. Buck for the patch (closes: Bug#446185). -- Ralf Treinen Sun, 14 Oct 2007 20:06:46 +0200 tuareg-mode (1:1.45.4-3) unstable; urgency=low * startup file: extend the load-path by the tuareg-mode directory -- Ralf Treinen Mon, 21 May 2007 22:07:32 +0200 tuareg-mode (1:1.45.4-2) unstable; urgency=low * [Julien Cristau] - Remove inactive people from the Uploaders field. * [Ralf Treinen] - Recommends ocaml-mode, to profit from the added functionality of tuareg-mode-with-caml-mode. Added a note in the package description. (closes: Bug#414167). -- Ralf Treinen Sat, 17 Mar 2007 19:16:39 +0100 tuareg-mode (1:1.45.4-1) unstable; urgency=low * Revert to upstream version 1.45 since indentation code in 1.46 is seriously broken (closes: Bug#389823). -- Ralf Treinen Sun, 1 Oct 2006 19:11:35 +0200 tuareg-mode (1.46.1-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Tue, 29 Aug 2006 09:07:28 +0200 tuareg-mode (1.46.0-1) unstable; urgency=low * New upstream release. * Standards-Version 3.7.2 (no change). * Turn Build-depends-indep: debhelper, dpatch into build-depends -- Ralf Treinen Sun, 14 May 2006 18:49:26 +0200 tuareg-mode (1.45.4-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Mon, 17 Apr 2006 00:04:14 +0200 tuareg-mode (1.45.3-1) unstable; urgency=low * New upstream release. This release fixes a bug due to erroneous detection of comments (closes: Bug#341203). -- Ralf Treinen Fri, 17 Feb 2006 19:45:22 +0100 tuareg-mode (1.45.2-1) unstable; urgency=low * New upstream release. This release incorporates our patch to work around the missing line-number function in emacs (closes: #341203). * Install an emacs startup file with priority 51, and replace the installed append-tuareg.el file by an empty file. Adapt README.Debian accordingly, make a note in NEWS. * Some improvements in long package description. * Patch 03_autoload_pattern: Narrow autoload-pattern down to what is really needed for OCaml files. * New uploader Sylvain Le Gall. -- Ralf Treinen Wed, 28 Dec 2005 15:46:08 +0100 tuareg-mode (1.45.0-beta3-1) unstable; urgency=low * New upstream release (called 1.45.0-rc3 by upstream). * Removed patch 03_keyword-face since fixed by upstream. * Standards-version 3.6.2 (no change). -- Ralf Treinen Sat, 30 Jul 2005 09:38:18 +0200 tuareg-mode (1.45.0-beta2-1) unstable; urgency=low * New upstream version (called 1.45.0-rc2 by upstream). * Removed patches 03_fontlock and 04_charsetp since now fixed by upstream. * Patch 03_keyword-face: Fix bug on keyword coloration - thanks to Remi Vanicat for the patch (closes: #312212). * Added new uploader Samuel Mimram. -- Ralf Treinen Tue, 7 Jun 2005 21:00:43 +0200 tuareg-mode (1.45.0-beta1-2) unstable; urgency=low * Patch 04_charsetp: Fixes compilation error under xemacs21-nomule due to unbound symbol charsetp. Thanks to Meik Hellmund for the patch. (closes: Bug#311274). -- Ralf Treinen Wed, 1 Jun 2005 22:05:47 +0200 tuareg-mode (1.45.0-beta1-1) unstable; urgency=low * New upstream version (called 1.45.0-rc1 by upstream) * Corrected variable settings in patch 03_fontlock - thanks to Remi Vanicat (closes: Bug# 311155). * Removed patch 04_version since obsolete for this upstream version. -- Ralf Treinen Sun, 29 May 2005 20:06:34 +0200 tuareg-mode (1.44.3-2) unstable; urgency=low * Fixed an embarrassing typo in changelog entry of 1.44.3-1. -- Ralf Treinen Sat, 19 Feb 2005 16:26:05 +0100 tuareg-mode (1.44.3-1) unstable; urgency=low * New upstream release * Some cleanup in emacsen-startup and emacs-install * emacsen-install: remove path.elc after compilation * Patch 03_fontlock: check binding of some font-lock variables to avoid compilation error on installation. Thanks to Jérôme Marant for his help. * Patch 04_version: fixed version number * copyright: distinguish copyright and licence. -- Ralf Treinen Sat, 19 Feb 2005 15:45:25 +0100 tuareg-mode (1.43.2-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Wed, 29 Dec 2004 16:32:35 +0100 tuareg-mode (1.43.0-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Wed, 24 Nov 2004 00:32:29 +0100 tuareg-mode (1.42.1-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Sun, 14 Nov 2004 16:16:01 +0100 tuareg-mode (1.42.0-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Wed, 10 Nov 2004 20:35:40 +0100 tuareg-mode (1.41.5-2) not-released; urgency=low * Fixed watch file -- Ralf Treinen Wed, 27 Oct 2004 08:57:07 +0200 tuareg-mode (1.41.5-1) unstable; urgency=low * New upstream release. -- Ralf Treinen Fri, 23 Jul 2004 20:28:56 +0200 tuareg-mode (1.41.4-1) unstable; urgency=low * New upstream release. * Fixed wrong regexp in watch file, placed it into debian directory. * Set maintainer to "Debian Ocaml Maintaines", uploaders to the gang of 5. * Dpatchified: -- Ralf Treinen Fri, 19 Mar 2004 20:14:45 +0100 tuareg-mode (1.41.3-1) unstable; urgency=low * New upstream release. * Added a debian/watch file. -- Ralf Treinen Mon, 23 Feb 2004 19:25:54 +0100 tuareg-mode (1.41.2-1) unstable; urgency=low * New upstream release -- Ralf Treinen Sun, 18 Jan 2004 11:59:07 +0100 tuareg-mode (1.40.5.1-1) unstable; urgency=low * New upstream release (upstream still calls this 1.40.5). Adds a function tuareg-narrow-to-phrase, see NEWS.Debian (closes: Bug#214844). * Added a NEWS.Debian file. -- Ralf Treinen Wed, 29 Oct 2003 09:17:33 +0100 tuareg-mode (1.40.5-1) unstable; urgency=low * New upstream release * Standards-Version: 3.6.1 [no change] * Use file debian/compat instead of variable DH_COMPAT -- Ralf Treinen Thu, 9 Oct 2003 22:26:23 +0200 tuareg-mode (1.40.4-1) unstable; urgency=low * New upstream release. * Standards-Version 3.5.8. * DH_COMPAT=4, build-depends on debhelper >= 4.0. * Simplified debian/rules (removed build_stamp since there is nothing to do). * Short description: removed full stop. * Removed some redundancy in long description. -- Ralf Treinen Sun, 26 Jan 2003 18:40:57 +0100 tuareg-mode (1.40.3.1-1) unstable; urgency=low * New upstream release (upstream 1.40.3, as of 15 Nov 2002). This release patches append-tuareg to not use sym-lock on mule-enabled xemacs. * Dependency: Changed xemacs21 into xemacs21-nomule, since the mule enabled xemacs does not work correctly with sym-lock. * Standards-version: 3.7.0 * debian/rules: remove configure target since we don't need it. * debian/rules: some cleanup in install target. * debian/rules: install LISEZMOI into /usr/share/doc/tuareg-mode. -- Ralf Treinen Sat, 16 Nov 2002 12:04:57 +0100 tuareg-mode (1.40.3-1) unstable; urgency=low * New upstream release. This release fixes a bug with indentation and alignment of comments (closes: Bug#156549), a bug with colorization (closes: Bug#157040), a bug with tuareg-electric-rb (closes: Bug#158897). * Changed dependency to "xemacs21 | emacsen", since xemacs21 seems to work best with tuareg-mode. * Added "Recommends: ocaml". -- Ralf Treinen Thu, 10 Oct 2002 22:35:50 +0200 tuareg-mode (1.40.2-1) unstable; urgency=low * New upstream release. This release resolves a problem with "just in time fontification" (closes: Bug#154746) and a problem with the identation of comments (closes: Bug153909). -- Ralf Treinen Fri, 2 Aug 2002 21:24:40 +0200 tuareg-mode (1.40.1-1) unstable; urgency=low * New upstream release (closes: Bug#152381). -- Ralf Treinen Mon, 15 Jul 2002 13:18:32 +0200 tuareg-mode (1.40final-1) unstable; urgency=low * New upstream release -- Ralf Treinen Wed, 26 Jun 2002 21:22:25 +0200 tuareg-mode (1.40b-1) unstable; urgency=low * New upstream release. * Fix url of the locally installed ocaml doc. * Added emacsen-startup file to adjust the load-path for people who have not enabled search in subdirectories (closes: Bug#149189). -- Ralf Treinen Fri, 7 Jun 2002 00:18:46 +0200 tuareg-mode (1.38.9-3) unstable; urgency=low * replaced in tuareg.el the definition of cadar and cddr by (require 'cl) as suggested by Henning Niss (closes: Bug#130530). Forwarded to upstream. -- Ralf Treinen Thu, 31 Jan 2002 19:23:58 +0100 tuareg-mode (1.38.9-2) unstable; urgency=low * fixed a spelling error in description (closes: Bug#125440). * some cleanup in debian/rules. -- Ralf Treinen Wed, 9 Jan 2002 20:03:24 +0100 tuareg-mode (1.38.9-1) unstable; urgency=low * New upstream release -- Ralf Treinen Sun, 9 Dec 2001 13:30:03 +0100 tuareg-mode (1.38.8-1) unstable; urgency=low * New upstream release. * Upstream has solved the problem with the redefinition of M-BS in xemacs (closes: Bug#117601). * Changed the "Depends: emacs20|xemacs21" to "Depends: emacsen" in order to accomodate all past, present and future versions of (x)emacs (closes: Bug#118844). * Patched the setting of tuareg-manual-url such that local documentation in /usr/share/doc/ocaml-doc is used if possible. -- Ralf Treinen Wed, 14 Nov 2001 20:46:56 +0100 tuareg-mode (1.38.7-1) unstable; urgency=low * Initial Release. tuareg-mode has now its own package after having been included in the ocaml-tools package until 1.1-2 (hence the Conflicts with ocaml-tools <= 1.1-2). * Modifications in files coming from upstream: - camldebug.el renamed to camldebug-tuareg.el since the former exists already in the ocaml package. Changed reference in append-tuareg.el accordingly. - changed the ocaml library path in tuareg.el from /usr/local/lib/ocaml to /usr/lib/ocaml as it should be for debian. -- Ralf Treinen Fri, 19 Oct 2001 20:53:43 +0200 debian/clean0000644000000000000000000000004312004754131010165 0ustar debian/tuareg-mode.emacsen-startup debian/source/0000755000000000000000000000000012004754131010463 5ustar debian/source/format0000644000000000000000000000001412004754131011671 0ustar 3.0 (quilt) debian/NEWS0000644000000000000000000000247612004754131007673 0ustar tuareg-mode (1:2.0.6-1) unstable; urgency=low This version of tuareg-mode contains a new SMIE indentation engine. Using this new feature is enabled by executing in emacs (setq tuareg-use-smie t) This is currently not done by default due to a bug in that indentation engine that in some cases may lead to an infinite loop. -- Ralf Treinen Wed, 06 Jun 2012 21:47:22 +0200 tuareg-mode (1.45.2-1) unstable; urgency=low The emacs mode tuareg-mode is now automatically loaded on all files with filename extension .ml[iylp]?. If the debian package "ocaml-mode", which provides an alternative emacs mode for (O)Caml files, is installed together with the tuareg-mode package then tuareg takes precedence. Users who wish to overwrite this behaviour should consult the instuctions given in the file /usr/share/doc/ocaml-mode/README.Debian. -- Ralf Treinen Thu, 22 Dec 2005 20:00:15 +0100 tuareg-mode (1.40.5.1-1) unstable; urgency=low New function called tuareg-narrow-to-phrase, bound to C-xnd (normally narrow-to-defun). It should work for all kinds of phrases, including within classes and modules (narrows to the whole module/class if called from the beginning of the module/class). -- Ralf Treinen Wed, 29 Oct 2003 09:02:49 +0100 debian/rules0000755000000000000000000000131112004754131010237 0ustar #!/usr/bin/make -f # debian/rules for tuareg-mode #export DH_VERBOSE=1 export TUAREGELDIR=debian/tuareg-mode/usr/share/emacs/site-lisp/tuareg-mode export TUAREGXELDIR=debian/tuareg-mode/usr/share/xemacs/site-lisp/tuareg-mode %: dh $@ .PHONY: override_dh_auto_install override_dh_auto_install: mkdir -p $(TUAREGELDIR) cp tuareg.el $(TUAREGELDIR) cp ocamldebug.el $(TUAREGELDIR)/ocamldebug-tuareg.el .PHONY: override_dh_installemacsen override_dh_installemacsen: dh_installemacsen --priority=51 .PHONY: override_dh_installchangelogs override_dh_installchangelogs: dh_installchangelogs README .PHONY: override_dh_auto_build override_dh_auto_build: .PHONY: override_dh_auto_test override_dh_auto_test: debian/watch0000644000000000000000000000013212004754131010210 0ustar version=3 http://forge.ocamlcore.org/frs/?group_id=43 .*/tuareg-([\d\.]+)\.(?:tgz|tar.gz) debian/copyright0000644000000000000000000000210412004754131011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: tuareg Upstream-Contact: tuareg@janestreet.com Source: https://forge.ocamlcore.org/projects/tuareg/ Files: * Copyright: © 1997-2006 Albert Cohen © 2009-2010 Jane Street Holding, LLC License: GPL-2 Files: debian/* Copyright: © 2001-2012 Ralf Treinen © 2010 Stéphane Glondu License: GPL-2 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. . On Debian systems, the full text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/patches/0000755000000000000000000000000012004754131010612 5ustar debian/patches/series0000644000000000000000000000002312004754131012022 0ustar ocaml-path emacs21 debian/patches/emacs210000644000000000000000000000167612004754131012002 0ustar Author: Kevin Ryde Integrated: Ralf Treinen Debian-bug: #676858 Description: emacs21 needs an (required 'derived) Forwarded: https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1172&group_id=43&atid=257 Index: tuareg-mode/tuareg.el =================================================================== --- tuareg-mode.orig/tuareg.el 2012-06-12 21:05:00.000000000 +0200 +++ tuareg-mode/tuareg.el 2012-06-12 21:06:12.000000000 +0200 @@ -134,6 +134,12 @@ (or history 'shell-command-history)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Compatibility with emacs21 + +(unless (fboundp 'derived-mode-p) ;; in derived.el in emacs21 + (require 'derived)) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Import types and help features (defvar tuareg-with-caml-mode-p debian/patches/ocaml-path0000644000000000000000000000114012004754131012556 0ustar Author: Ralf Treinen Description: fix path of ocaml libraries to conform with debian Index: tuareg-mode/tuareg.el =================================================================== --- tuareg-mode.orig/tuareg.el 2012-05-28 21:24:46.000000000 +0200 +++ tuareg-mode/tuareg.el 2012-05-28 21:25:46.000000000 +0200 @@ -441,7 +441,7 @@ Valid names are `browse-url', `browse-url-firefox', etc." :group 'tuareg) -(defcustom tuareg-library-path "/usr/local/lib/ocaml/" +(defcustom tuareg-library-path "/usr/lib/ocaml/" "*Path to the OCaml library." :group 'tuareg :type 'string) debian/README.Debian0000644000000000000000000000100012004754131011213 0ustar tuareg-mode for Debian ---------------------- tuareg-mode is now automatically loaded on all files with filename extension .ml[iylp]?. If the debian package "ocaml-mode", which provides an alternative emacs mode for (O)Caml files, is installed together with the tuareg-mode package then tuareg takes precedence. Users who wish to overwrite this behaviour should consult the instuctions given in the file /usr/share/doc/ocaml-mode/README.Debian. -- Ralf Treinen , Fri Sep 2 20:38:53 2005 debian/gbp.conf0000644000000000000000000000012612004754131010601 0ustar [DEFAULT] pristine-tar = True cleaner = debuild clean && dh_quilt_unpatch && dh_clean debian/compat0000644000000000000000000000000212004754131010361 0ustar 7 debian/control0000644000000000000000000000254212004754131010571 0ustar Source: tuareg-mode Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Ralf Treinen , Samuel Mimram , Stéphane Glondu , Sylvain Le Gall Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/tuareg-mode.git Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/tuareg-mode.git Homepage: http://tuareg.forge.ocamlcore.org/ Package: tuareg-mode Architecture: all Depends: emacs23 | emacsen, ${misc:Depends} Recommends: ocaml-interp, ocaml-mode Enhances: ocaml-interp Conflicts: ocaml-tools (<= 1.1-2) Description: emacs-mode for ocaml programs It handles automatic indentation of Objective Caml and Caml-Light code. Key parts of the code are highlighted using Font-Lock. It provides support to run an interactive OCaml toplevel and debugger. It works both with FSF Emacs and XEmacs. . This mode attempts to give better results than the one provided in the standard distribution of OCaml and which is available through the ocaml-mode package. Indentation rules are slightly different but closer to classical functional languages indentation. Tuareg-mode gives access to some functionalities from ocaml-mode when that package is installed. debian/emacsen-startup0000644000000000000000000000077012004754131012225 0ustar (add-to-list 'auto-mode-alist '("\\.ml[iylp]?\\'" . tuareg-mode)) (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t) (autoload 'camldebug "ocamldebug-tuareg" "Run the Caml debugger" t) (dolist (ext '(".cmo" ".cmx" ".cma" ".cmxa" ".cmi")) (add-to-list 'completion-ignored-extensions ext)) (debian-pkg-add-load-path-item (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/tuareg-mode")) ;; SMIE turned off due to upstream bug #1167 (setq tuareg-use-smie nil) debian/emacsen-install0000644000000000000000000000241412004754131012166 0ustar #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/tuareg-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=tuareg-mode if [ ${FLAVOR} = emacs ]; then exit 0; fi 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} RELELDIR=../../../emacs/site-lisp/${PACKAGE} # 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 install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} ln -sf ${RELELDIR}/*.el . cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF case "${FLAVOR}" in xemacs21) ;; emacs*) ${FLAVOR} ${FLAGS} ${FILES} ;; esac rm -f path.el cd ${ELCDIR} for f in ${FILES} ; do ln -sf ${RELELDIR}/$f . done exit 0