debian/0000755000000000000000000000000012171630614007167 5ustar debian/docs0000644000000000000000000000002612171620742010041 0ustar BUGS NEWS README TODO debian/watch0000644000000000000000000000014112171620742010215 0ustar version=2 http://www-perso.iro.umontreal.ca/~monnier/elisp/sml-mode-(.*)\.tar\.gz debian uupdate debian/control0000644000000000000000000000145012171632143010571 0ustar Source: sml-mode Section: editors Priority: optional Maintainer: Debian QA Group Build-Depends-Indep: texinfo, emacs24 | emacsen Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://www.iro.umontreal.ca/~monnier/elisp Vcs-Hg: http://anonscm.debian.org/hg/collab-maint/sml-mode Package: sml-mode Architecture: all Depends: emacsen-common, dpkg (>= 1.15.4) | install-info, ${misc:Depends} Enhances: mlton, mosml Description: Emacs major mode for editing Standard ML programs SML-mode provides syntax highlighting and automatic indentation for Standard ML and comes with sml-proc which allows interaction with an inferior SML interactive loop. You will need this if you write Standard ML programs using Emacs. For OCaml prgramming, see instead tuareg-mode. debian/source/0000755000000000000000000000000012171620742010470 5ustar debian/source/format0000644000000000000000000000001412171620742011676 0ustar 3.0 (quilt) debian/source.lintian-overrides0000644000000000000000000000006012171620742014044 0ustar sml-mode source: build-depends-without-arch-dep debian/postinst0000644000000000000000000000057612171620742011006 0ustar #! /bin/sh # postinst script for sml-mode set -e ## Remove obsolete debconf questions. if dpkg --compare-versions 3.9.5-9 le-nl "$2"; then # Source debconf library, if present. if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule ## Remove all questions in the debconf database. db_purge fi fi #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012171625731010622 5ustar debian/patches/polyml_error_pattern.diff0000644000000000000000000000131612171622654015740 0ustar Description: Support PolyML. Author: Jens Peter Secher Index: sml-mode-5.0/sml-proc.el =================================================================== --- sml-mode-5.0.orig/sml-proc.el 2013-07-17 19:15:53.209570116 -0400 +++ sml-mode-5.0/sml-proc.el 2013-07-17 19:15:53.205570096 -0400 @@ -199,7 +199,7 @@ (defvar sml-error-regexp-alist `( ;; Poly/ML messages - ("^\\(Error\\|Warning:\\) in '\\(.+\\)', line \\([0-9]+\\)" 2 3) + ("^\\(Error:\\|Warning:\\) in '\\(.+\\)', line \\([0-9]+\\)" 2 3) ;; Moscow ML ("^File \"\\([^\"]+\\)\", line \\([0-9]+\\)\\(-\\([0-9]+\\)\\)?, characters \\([0-9]+\\)-\\([0-9]+\\):" 1 2 5) ;; SML/NJ: the file-pattern is anchored to avoid debian/patches/series0000644000000000000000000000022612171624514012035 0ustar install_into_datadir.diff check_for_charsetp.diff find_match_stop_at_end_or_beginning_of_buffer.diff polyml_error_pattern.diff texi_build_errors.diff debian/patches/check_for_charsetp.diff0000644000000000000000000000140512171621744015270 0ustar Description: Check for existence of charsetp before using it. Author: Jens Peter Secher Index: sml-mode-5.0/sml-mode.el =================================================================== --- sml-mode-5.0.orig/sml-mode.el 2013-07-17 19:08:14.079293412 -0400 +++ sml-mode-5.0/sml-mode.el 2013-07-17 19:08:14.075293392 -0400 @@ -333,7 +333,7 @@ (defconst sml-font-lock-symbols-alist (append ;; The symbols can come from a JIS0208 font. - (and (fboundp 'make-char) (charsetp 'japanese-jisx0208) + (and (fboundp 'make-char) (fboundp 'charsetp) (charsetp 'japanese-jisx0208) (memq sml-font-lock-symbols '(t japanese-jisx0208)) (list (cons "fn" (make-char 'japanese-jisx0208 38 75)) (cons "andalso" (make-char 'japanese-jisx0208 34 74)) debian/patches/find_match_stop_at_end_or_beginning_of_buffer.diff0000644000000000000000000000165312171622310022657 0ustar Description: Find match stop at end or beginning of buffer Author: Jens Peter Secher Index: sml-mode-5.0/sml-oldindent.el =================================================================== --- sml-mode-5.0.orig/sml-oldindent.el 2013-07-17 19:12:04.532436167 -0400 +++ sml-mode-5.0/sml-oldindent.el 2013-07-17 19:12:04.528436147 -0400 @@ -229,6 +229,7 @@ (condition-case () (forward-sexp 1) (error (forward-char 1)))) (setq level (cond + ((and (eobp) (> level 1)) (error "Unbalanced")) ((sml-looking-back-at this) (1+ level)) ((sml-looking-back-at match) (1- level)) (t (error "Unbalanced"))))) @@ -244,6 +245,7 @@ (condition-case () (backward-sexp 1) (error (backward-char 1)))) (setq level (cond + ((and (bobp) (> level 1)) (error "Unbalanced")) ((looking-at this) (1+ level)) ((looking-at match) (1- level)) (t (error "Unbalanced"))))) debian/patches/install_into_datadir.diff0000644000000000000000000000142412171621472015642 0ustar Description: Install into datadir Author: Jens Peter Secher Index: sml-mode-5.0/Makefile =================================================================== --- sml-mode-5.0.orig/Makefile 2013-07-17 19:05:25.278456373 -0400 +++ sml-mode-5.0/Makefile 2013-07-17 19:05:25.278456373 -0400 @@ -41,8 +41,8 @@ elibdir = $(lispdir)/elib # the directory where you install the info doc -infodir = $(prefix)/info -docdir = $(prefix)/doc +infodir = $(datadir)/info +docdir = $(datadir)/doc EMACS = emacs MAKEINFO= makeinfo @@ -131,7 +131,7 @@ $(MKDIR) $(docdir) $(CP) `find . -type f -name '*.dvi' -print` $(docdir)/ -install: install_elc install_info install_startup install_el +install: install_elc install_info install_el clean: $(RM) *~ core .\#* $(TEXEXTS) debian/patches/texi_build_errors.diff0000644000000000000000000000124312171625731015200 0ustar Description: Fix errors when generating info file. Bug-Debian: http://bugs.debian.org/712352 Author: Barry deFreese Index: sml-mode-5.0/sml-mode.texi =================================================================== --- sml-mode-5.0.orig/sml-mode.texi 2012-04-11 20:20:36.000000000 -0400 +++ sml-mode-5.0/sml-mode.texi 2013-07-17 19:39:54.408716636 -0400 @@ -34,8 +34,8 @@ @center @titlefont{Editing and Running Standard ML} @center @titlefont{under GNU Emacs} @sp 5 -@center {SML mode, Version $Name$} -@center {August 1999} +@center SML mode, Version $Name$ +@center August 1999 @sp 2 @author Authors: Matthew J.@: Morley and Stefan Monnier debian/rules0000755000000000000000000000052312171630051010242 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: override_dh_auto_install: dh_auto_install -- prefix=$(CURDIR)/debian/sml-mode/usr override_dh_install: rm -f $(CURDIR)/debian/sml-mode/usr/share/emacs/site-lisp/sml-mode/*.elc dh_install get-orig-source: wget http://www-perso.iro.umontreal.ca/~monnier/elisp/sml-mode-4.0.tar.gz debian/changelog0000644000000000000000000001440412171632163011045 0ustar sml-mode (5.0-1) unstable; urgency=low * QA upload. * Set maintainer to Debian QA Group . * New upstream release. + Refresh existing patches. + find_match_stop_at_end_or_beginning_of_buffer.diff - Update to patch sml-oldindent.el instead of sml-move.el. + sml-compat.el removed and so are old defvars. (Closes: #681922, #710746). * Add texi_build_errors patch to fix texi errors. (Closes: #712352). * Bump emacs build-dep to emacs24 | emacsen. * Make VCS tag canonical. * Bump debhelper build-dep and compat to 9. + Update rules to simple dh style. * Bump Standards Version to 3.9.4. -- Barry deFreese Wed, 17 Jul 2013 19:01:03 -0400 sml-mode (4.1-2) unstable; urgency=low * Bumped Standards-Version to 3.9.1, no change. * Compile to unstable, cleanup of patches. -- Jens Peter Secher Sat, 16 Apr 2011 17:20:44 +0200 sml-mode (4.1-1) experimental; urgency=low * New upstream version. * Removed all autogenerated files. -- Jens Peter Secher Sat, 11 Sep 2010 15:27:14 +0200 sml-mode (4.0-8) unstable; urgency=low * Converted to dpkg-source format 3.0 (quilt). * Use mercurial-buildpackage for repository maintenance. * Move to debhelper 7. * Migrate to Standards-Version 3.8.4: Added Homepage field. * Updated emacs install scripts to not include site and init files while compiling. * Per new emacs policy, only depend on emacsen-common. * Fixed a FTBFS by updating emacs build dependency. (Closes: #595858) -- Jens Peter Secher Sat, 01 May 2010 23:53:37 +0200 sml-mode (4.0-7) unstable; urgency=low * Simplify install, removal, and load-path by using symlinks instead of copying source files, thanks Michael Olson. -- Jens Peter Secher Sat, 14 Jul 2007 09:01:35 +0200 sml-mode (4.0-6) unstable; urgency=low * Fixed wrong Poly/ML error pattern, thanks to Ian Zimmerman. (Closes: bug#386364) * Fixed missing names in copyright file. * Bump Standards-Version to 3.7.2. -- Jens Peter Secher Mon, 11 Sep 2006 21:18:12 +0200 sml-mode (4.0-5) unstable; urgency=low * Update FSF address in copyright file. * Override build-depends-without-arch-dep Lintian warning. * Bump Standards-Version to 3.6.2. -- Jens Peter Secher Wed, 28 Sep 2005 10:09:16 +0200 sml-mode (4.0-4) unstable; urgency=low * Fixed end/beginning-of-buffer problem in sml-find-match-forward/backward function. (closes: bug#279348) * Make sure that Emacs Help can find the source code by including the location in load-path (instead of byte-code location, which is now set up in upstream sml-mode-startup). -- Jens Peter Secher Sun, 12 Jun 2005 01:23:52 +0200 sml-mode (4.0-3) experimental; urgency=low * Fixed the automatic pacthing of bug#286190. * Fixed the get-orig-source target in debian/rules. -- Jens Peter Secher Sat, 18 Dec 2004 16:46:10 +0100 sml-mode (4.0-2) experimental; urgency=low * Fix MULE dependent compile problem with XEmacs. (closes: bug#286190) -- Jens Peter Secher Sat, 18 Dec 2004 16:01:32 +0100 sml-mode (4.0-1) experimental; urgency=low * New upstream release. (closes: bug#284261) -- Jens Peter Secher Sun, 5 Dec 2004 19:08:57 +0100 sml-mode (3.9.5-11) unstable; urgency=low * deian/rules: some missing phony targets added. * Updated watch file. -- Jens Peter Secher Sun, 5 Dec 2004 19:04:00 +0100 sml-mode (3.9.5-10) unstable; urgency=low * Changed priority back to optional and Build-Depends-Indep to Build-Depends. * Converted to using dpatch. * Applied patch from Sebastian Schaffert to fix xemacs problem when sending the buffer contents to the interpreter. Part of bug#274266. * Included a watch file. -- Jens Peter Secher Sun, 10 Oct 2004 00:29:58 +0200 sml-mode (3.9.5-9) unstable; urgency=low * Bumped Standards-Version: 3.6.1. * Remove obsolete debconf questions. * The source only seems to be available from ftp://ftp.research.bell-labs.com/dist/smlnj/contrib/emacs/ now. * Corrected Maintainer field. -- Jens Peter Secher Mon, 15 Sep 2003 20:15:14 +0200 sml-mode (3.9.5-8) unstable; urgency=low * Autoload sml-mode top-level functions site-wide. -- Jens Peter Secher Sun, 1 Dec 2002 17:28:19 +0100 sml-mode (3.9.5-7) unstable; urgency=low * Added "emacs21 |emacsen" to Build-Depends-Indep and changed Depends-Indep accordingly. (closes: bug#142137) * Removed unnecessary debconf notes and questions. -- Jens Peter Secher Wed, 7 Aug 2002 23:03:24 +0200 sml-mode (3.9.5-6) unstable; urgency=low * Bumped Standards-Version: 3.5.6. * Change section: utils -> editors. * Inserted german translation of Debconf templates, thanks to Sebastian Feltel (although some characters are wrong). (closes: bug#118041) -- Jens Peter Secher Fri, 28 Dec 2001 10:39:15 +0100 sml-mode (3.9.5-5) unstable; urgency=high * Got a sponsor! (closes: bug#112060) * Revert to running target install to get sml-mode-startup.el installed. Remove elc files afterwards. -- Jens Peter Secher Fri, 26 Oct 2001 11:46:36 +0200 sml-mode (3.9.5-4) unstable; urgency=low * Don't include .elc files in package: Only run targets install_el and install_info -- Jens Peter Secher Fri, 26 Oct 2001 01:52:38 +0200 sml-mode (3.9.5-3) unstable; urgency=low * postinst now always generates the /etc/emacs/site-start.d/50sml-mode.el file all by itself, and prerm always removes it. It is thus not a config file anymore. * Cleaned up things. -- Jens Peter Secher Thu, 25 Oct 2001 18:18:02 +0200 sml-mode (3.9.5-2) unstable; urgency=low * Changed "Build-Depends" to "Build-Depends-Indep" in control, as required by policy 7.6. -- Jens Peter Secher Tue, 25 Sep 2001 10:07:51 +0200 sml-mode (3.9.5-1) unstable; urgency=low * Initial Release. -- Jens Peter Secher Wed, 12 Sep 2001 15:43:19 +0200 debian/emacsen-remove0000644000000000000000000000040012171620742012013 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/sml-mode FLAVOR=$1 PACKAGE=sml-mode if [ ${FLAVOR} != emacs ]; then echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi exit 0 debian/emacsen-startup0000644000000000000000000000154712171620742012235 0ustar ;; -*-emacs-lisp-*- (if (not (file-exists-p "/usr/share/emacs/site-lisp/sml-mode")) (message "Package sml-mode removed but not purged. Skipping setup.") (let ((smldir (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/sml-mode"))) ;; Only load sml-mode if it has been installed. (if (zerop (length (file-expand-wildcards smldir))) (message "sml-mode not for this flavor. Skipping.") ;; The sml-mode package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor'. The compiled ;; code is then installed in a subdirectory of the respective site-lisp ;; directory. (debian-pkg-add-load-path-item smldir) ;; Autoload sml-mode top-level functions site-wide. (load "sml-mode-startup")))) debian/emacsen-install0000644000000000000000000000151112171620742012170 0ustar #!/bin/sh -e #/usr/lib/emacsen-common/packages/install/sml-mode FLAVOR=$1 if [ ${FLAVOR} = emacs ]; then exit 0; fi PACKAGE=sml-mode echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} # The byte-compiled files goes into the site-lisp directory. BCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} install -m 755 -d ${BCDIR} # The elisp source files are in the generic site-list directory. SRCDIR=/usr/share/emacs/site-lisp/${PACKAGE} SRC=`find ${SRCDIR} -name '*.el' -exec basename '{}' ';'` # Prepare for byte-compiling the source files. cd ${BCDIR} ln -sf ${SRCDIR}/*.el . cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF # Byte-compile elisp files. FLAGS="--no-site-file --no-init-file --batch -l path.el -f batch-byte-compile" ${FLAVOR} ${FLAGS} ${SRC} rm -f path.el exit 0 debian/compat0000644000000000000000000000000212171623624010370 0ustar 9 debian/info0000644000000000000000000000001612171620742010043 0ustar sml-mode.info debian/copyright0000644000000000000000000000231412171620742011123 0ustar This package was debianised by Jens Peter Secher on Wed, 12 Sep 2001 15:14:01 +0200. It was downloaded from http://www.iro.umontreal.ca/~monnier/elisp/sml-mode-4.0.tar.gz Upstream Author: Stefan Monnier Copyright: Copyright (C) 1999,2000,2004 Stefan Monnier Copyright (C) 1994-1997 Matthew J. Morley Copyright (C) 1989 Lars Bo Nielsen 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. You should have received a copy of the GNU General Public License along with this program (on Debian GNU/Linux systems you will find it /usr/share/common-licenses/GPL-2) ; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.