]> code.delx.au - gnu-emacs-elpa/commitdiff
* sml-mode.texi: Added yours truly to the list of authors.
authormonnier <>
Sat, 7 Oct 2000 02:21:46 +0000 (02:21 +0000)
committermonnier <>
Sat, 7 Oct 2000 02:21:46 +0000 (02:21 +0000)
* sml-mode.spec: New file.
* sml-defs.el (sml-outline-regexp): Slightly improved regexp.

sml-defs.el
sml-mode.spec [new file with mode: 0755]
sml-mode.texi

index 2c6d6c76ca9b2f9b6276f6b5bf6704634a0b6474..ce651ae5f7faa4e22f2857df05f05b07c8ffcff0 100644 (file)
   "Editing SML code."
   :group 'languages)
 
-(defvar sml-outline-regexp "[ \t]*\\((\\*+\\|\\(let[ \t]+\\)?fun.\\)"
-  "Regexp matching a major heading.")
+(defvar sml-outline-regexp
+  ;; `st' and `si' are to match structure and signature.
+  "\f\\|s[ti]\\|[ \t]*\\(let[ \t]+\\)?\\(fun\\|and\\)\\>"
+  "Regexp matching a major heading.
+This actually can't work without extending `outline-minor-mode' with the
+notion of \"the end of an outline\".")
 
 ;;; 
 ;;; Internal defines
diff --git a/sml-mode.spec b/sml-mode.spec
new file mode 100755 (executable)
index 0000000..694bcae
--- /dev/null
@@ -0,0 +1,96 @@
+%define emacs          emacs
+%define prefix         %{_prefix}
+%define datadir                %{_datadir}
+%define lispdir                %{datadir}/emacs/site-lisp
+%define startupfile    %{lispdir}/site-start.el
+%define infodir                %{_infodir}
+
+Summary:       Emacs mode for editing Standard ML source
+Name:          sml-mode
+Version:       3.9.3
+Release:       3
+Group:         Applications/Editors
+Copyright:     GPL
+Packager:      José Romildo Malaquias <romildo@iceb.ufop.br>
+Source:                ftp://flint.cs.yale.edu/pub/monnier/sml-mode/sml-mode-%{version}.tar.gz
+Buildroot:     %{_tmppath}/%{name}-buildroot
+Requires:      %{emacs}
+BuildArch:     noarch
+
+%description
+SML-MODE is a major Emacs mode for editing Standard ML. It provides syntax
+highlighting and automatic indentation and comes with sml-proc which allows
+interaction with an inferior SML interactive loop.
+
+%prep
+%setup -q -n sml-mode-%{version}
+%patch -p1 -b .compat
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{infodir}
+make install install_el install_startup \
+  prefix=$RPM_BUILD_ROOT%{prefix} \
+  datadir=$RPM_BUILD_ROOT%{datadir} \
+  infodir=$RPM_BUILD_ROOT%{infodir} \
+  lispdir=$RPM_BUILD_ROOT%{lispdir} \
+  startupfile=$RPM_BUILD_ROOT%{startupfile} \
+  EMACS=%{emacs}
+
+gzip -9f $RPM_BUILD_ROOT%{lispdir}/sml-mode/*.el
+
+sed -e "s|$RPM_BUILD_ROOT||" $RPM_BUILD_ROOT%{startupfile} > $RPM_BUILD_ROOT%{lispdir}/sml-mode/sml-mode-startup.el
+
+texi2pdf sml-mode.texi
+
+if [ %{xemacs}x!=\%{xemacs}x ]; then
+    mkdir -p $RPM_BUILD_ROOT%{lispdir}/../man
+    cp -p sml-mode.texi $RPM_BUILD_ROOT%{lispdir}/../man
+    echo "%doc %{lispdir}/../man/sml-mode.texi" > files
+else
+    echo "%doc sml-mode.texi" > files
+fi
+
+%post
+cat >> %{startupfile} <<EOF
+;; sml-mode-start
+;; This section was automatically generated by rpm
+(load-library "%{lispdir}/sml-mode/sml-mode-startup.el")
+;; End of automatically generated section
+;; sml-mode-end
+EOF
+
+if [ %{xemacs}x=\%{xemacs}x ]; then
+  /sbin/install-info %{infodir}/sml-mode.info.gz %{infodir}/dir --section=Emacs
+fi
+
+%postun
+ed -s %{startupfile} <<EOF
+/^;; sml-mode-start$/,/^;; sml-mode-end$/d
+wq
+EOF
+if [ %{xemacs}=\%{xemacs} ]; then
+  /sbin/install-info --delete %{infodir}/sml-mode.info.gz %{infodir}/dir
+fi
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f files
+%defattr(-,root,root)
+%doc BUGS ChangeLog INSTALL NEWS README TODO
+%doc sml-mode.texi sml-mode.pdf
+%{lispdir}/sml-mode
+%{infodir}/*
+
+%changelog
+* Thu Oct  5 2000 José Romildo Malaquias <romildo@iceb.ufop.br>
+- Rebuild for Red Hat Linux 7.0
+
+* Thu Aug 17 1999 José Romildo Malaquias <romildo@iceb.ufop.br>
+- Version 3.9.3.
+- Emacs/XEmacs switching.
+
+* Tue Jun 23 1998 José Romildo Malaquias <romildo@iceb.ufop.br>
+- initialization of spec file.
+
index ba471e768ff41d8b39fe46cca6c98cee7273e72b..6c2db933ba34d64a846637542777006c42015c1c 100644 (file)
@@ -37,7 +37,7 @@
 @center {SML mode, Version $Name$}
 @center {August 1999}
 @sp 2
-@author Author: Matthew J.@: Morley
+@author Authors: Matthew J.@: Morley and Stefan Monnier
 
 @page
 @vskip 0pt plus 1filll