--- mmm-mode-0.4.8.orig/mmm-compat.el +++ mmm-mode-0.4.8/mmm-compat.el @@ -87,12 +87,13 @@ ;;}}} ;;{{{ Regexp-Opt (XEmacs) +;; Some versions of XEmacs required a three-argument version of regexp-opt, +;; but current XEmacs is now back to taking the same number of arguments. +;; This is now a simple wrapper around regexp-opt. -- rra, 2005-08-03 (defmacro mmm-regexp-opt (strings paren) "Act like FSF Emacs' `regexp-opt', whichever Emacs we're in. XEmacs' `regexp-opt' requires an extra parameter to do grouping." - (if (featurep 'xemacs) - `(regexp-opt ,strings ,paren t) - `(regexp-opt ,strings ,paren))) + `(regexp-opt ,strings ,paren)) ;;}}} ;;{{{ Overlays (XEmacs) @@ -187,7 +188,14 @@ `(font-lock-set-defaults))) ;;}}} +;;{{{ String Matching (XEmacs) + +;; XEmacs doesn't have match-string-no-properties. -- rra, 2005-08-03 +(unless (fboundp 'match-string-no-properties) + (defalias 'match-string-no-properties 'match-string)) + +;;}}} (provide 'mmm-compat) -;;; mmm-compat.el ends here \ No newline at end of file +;;; mmm-compat.el ends here --- mmm-mode-0.4.8.orig/debian/compat +++ mmm-mode-0.4.8/debian/compat @@ -0,0 +1 @@ +4 --- mmm-mode-0.4.8.orig/debian/mmm-mode.README.Debian +++ mmm-mode-0.4.8/debian/mmm-mode.README.Debian @@ -0,0 +1,12 @@ +We now autoload mmm-mode, but we don't actually turn it on because +that represents a performance hit that we don't want to unilaterally +impose on all emacs users. + +So, if you want to use mmm-mode, you'll need to: + +(setq mmm-global-mode 'maybe) + +Obviously there's a lot of customization possible. Read the info +files. + +Mike. --- mmm-mode-0.4.8.orig/debian/control +++ mmm-mode-0.4.8/debian/control @@ -0,0 +1,17 @@ +Source: mmm-mode +Maintainer: Alexander Zangerl +Section: editors +Priority: optional +Build-Depends: debhelper (>= 4) +Standards-Version: 3.7.2 + +Package: mmm-mode +Section: editors +Priority: optional +Architecture: all +Depends: emacs21 | emacsen, emacs21 | emacs-snapshot | xemacs21-basesupport (>= 2003.11.13-1) +Description: Multiple Major Mode for Emacs + MMM Mode is a minor mode for Emacs that allows Multiple Major Modes + (hence the name) to coexist in one buffer. It is particularly + well-suited to editing embedded code, such as Mason server-side Perl, + or HTML output in CGI scripts. --- mmm-mode-0.4.8.orig/debian/copyright +++ mmm-mode-0.4.8/debian/copyright @@ -0,0 +1,46 @@ +This is a version of MMM Mode for Emacs by Michael Abraham Shulman + prepackaged for Debian GNU/Linux. + +MMM Mode is a minor mode for Emacs that allows Multiple Major Modes +(hence the name) to coexist in one buffer. It is particularly +well-suited to editing embedded code, such as Mason server-side Perl, +or HTML output in CGI scripts. + +The package was assembled by Michael Alan Dorman . +The latest version of MMM Mode should always be available from +http://mmm-mode.sourceforge.net/. + +The mmm-mode copyright is: + +;;; mmm-mode.el --- Allow Multiple Major Modes in a buffer + +;; Copyright (C) 1999 by Michael Abraham Shulman + +;; Emacs Lisp Archive Entry +;; Package: mmm-mode +;; Author: Michael Abraham Shulman +;; Keywords: convenience, faces, languages, tools +;; Version: 0.4.7 + +;; Revision: $Id: copyright,v 1.1 2001/04/22 16:21:49 mdorman Exp $ + +;;{{{ GPL + +;; This file 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. + +;; This file 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 GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +;; Boston, MA 02110-1301, USA. + +;;}}} + +On Debian systems, the full text of the GPL can be found in /usr/share/common-licenses/GPL --- mmm-mode-0.4.8.orig/debian/changelog +++ mmm-mode-0.4.8/debian/changelog @@ -0,0 +1,63 @@ +mmm-mode (0.4.8-4) unstable; urgency=low + + * updated watch file, lifted standards version + + -- Alexander Zangerl Tue, 10 Apr 2007 18:21:38 +1000 + +mmm-mode (0.4.8-3) unstable; urgency=low + + * The "But I'm Not Dead Yet!" Release + * New maintainer + + -- Alexander Zangerl Wed, 23 Nov 2005 21:24:00 +1000 + +mmm-mode (0.4.8-2) unstable; urgency=low + + * QA upload. + * Include emacs-snapshot in alternative dependencies. Closes: #323392. + * debian/copyright: + - Remove outdated (and no longer required) list of changes. + - Update FSF address. + * debian/rules: Use dh_install. + * debian/watch: Add. + + -- Matej Vela Thu, 15 Sep 2005 16:10:10 +0200 + +mmm-mode (0.4.8-1) unstable; urgency=low + + * QA upload. + * New upstream version. (Closes: #281659, #214681) + - Use virgin upstream tarball. (Closes: #96185) + * Remove the compatibility code for three-argument regexp-opt in XEmacs, + since XEmacs has now reverted back to two arguments. + * Provide a match-string-no-properties alias for XEmacs. + * Use installation and removal code similar to other mode packages. + - Install *.elc files into a subdirectory. (Closes: #119260) + - Use -no-site-file or --no-site-file. (Closes: #218087) + * Depend on emacs21 instead of emacs20. (Closes: #232775) + * Add a versioned dependency on xemacs21-basesupport to get a + two-argument regexp-opt. + * Update standards-version to 3.6.2 (no changes required). + * Update debhelper level to V4 and add versioned dependency. + + -- Russ Allbery Wed, 3 Aug 2005 00:08:23 -0700 + +mmm-mode (0.4.7-3) unstable; urgency=low + + * QA Group upload orphaning this package + * debian/copyright: mention location of license + + -- Andrew Pollock Tue, 9 Nov 2004 23:24:05 +1100 + +mmm-mode (0.4.7-2) unstable; urgency=low + + * Automatically require mmm-auto, but don't do anything else. (closes: bug#101475) + + -- Michael Alan Dorman Tue, 7 Aug 2001 16:46:02 -0400 + +mmm-mode (0.4.7-1) unstable; urgency=low + + * Initial debianization. + + -- Michael Alan Dorman Sun, 22 Apr 2001 09:56:23 -0400 + --- mmm-mode-0.4.8.orig/debian/watch +++ mmm-mode-0.4.8/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://downloads.sourceforge.net/mmm-mode/mmm-mode-(.+)\.tar\.gz.* --- mmm-mode-0.4.8.orig/debian/mmm-mode.emacsen-install +++ mmm-mode-0.4.8/debian/mmm-mode.emacsen-install @@ -0,0 +1,28 @@ +#!/bin/sh -e + +FILES="mmm-auto.el mmm-class.el mmm-cmds.el mmm-compat.el mmm-cweb.el mmm-mason.el mmm-mode.el mmm-noweb.el mmm-region.el mmm-rpm.el mmm-sample.el mmm-univ.el mmm-utils.el mmm-vars.el" + +FLAVOR="$1" + +echo "install/mmm-mode: Handling install of emacsen flavor ${FLAVOR}" + +if [ "${FLAVOR}" != "emacs" ]; then + echo "install/mmm-mode: byte-compiling for ${FLAVOR}" + cd /usr/share/emacs/site-lisp/mmm-mode + mkdir -p /usr/share/${FLAVOR}/site-lisp/mmm-mode + cp $FILES /usr/share/${FLAVOR}/site-lisp/mmm-mode + cd /usr/share/${FLAVOR}/site-lisp/mmm-mode + cat < path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF + FLAVORTEST=`echo $FLAVOR | cut -c-6` + if [ ${FLAVORTEST} = xemacs ] ; then + SITEFLAG="-no-site-file" + else + SITEFLAG="--no-site-file" + fi + ${FLAVOR} -q ${SITEFLAG} -batch -l path.el -f batch-byte-compile $FILES + rm path.el $FILES +fi + +exit 0; --- mmm-mode-0.4.8.orig/debian/mmm-mode.emacsen-remove +++ mmm-mode-0.4.8/debian/mmm-mode.emacsen-remove @@ -0,0 +1,12 @@ +#!/bin/sh -e + +FLAVOR="$1" + +echo "install/mmm-mode: Handling removal of emacsen flavor ${FLAVOR}" + +if [ "${FLAVOR}" != "emacs" ]; then + echo "install/mmm-mode: purging byte-compiled files for ${FLAVOR}" + rm -rf /usr/share/${FLAVOR}/site-lisp/mmm-mode +fi + +exit 0; --- mmm-mode-0.4.8.orig/debian/rules +++ mmm-mode-0.4.8/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +build: + +clean: + dh_testdir + dh_testroot + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install *.el usr/share/emacs/site-lisp/mmm-mode + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs AUTHORS FAQ NEWS README README.Mason TODO + dh_installemacsen + dh_installinfo mmm.info* + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- mmm-mode-0.4.8.orig/debian/mmm-mode.emacsen-startup +++ mmm-mode-0.4.8/debian/mmm-mode.emacsen-startup @@ -0,0 +1,4 @@ +;; This is as far as you can go without perhaps incurring performance +;; issues. You probably want to add (setq mmm-global-mode 'maybe) in +;; your .emacs. 'info mmm-mode' for details +(require 'mmm-auto)