From fc98f567cb8cd3113404b09b70e59e246119e7bb Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 26 May 2007 12:55:55 +0000 Subject: Add framework for Emacs MFL Major Mode git-svn-id: file:///svnroot/mailfromd/trunk@1477 7a8a7f39-df28-0410-adc6-e0d955640f24 --- ChangeLog | 10 +++++++++- Makefile.am | 2 +- configure.ac | 9 +++++++++ doc/mailfromd.texi | 1 + elisp/Makefile.am | 21 +++++++++++++++++++++ elisp/mfl-mode.el | 0 6 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 elisp/Makefile.am create mode 100644 elisp/mfl-mode.el diff --git a/ChangeLog b/ChangeLog index f0b4d970..ca710d51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-05-26 Sergey Poznyakoff + + * doc/mailfromd.texi: Update + * Makefile.am: Update + * elisp: New directory + * elisp/mfl-mode.el: New file + * elisp/Makefile.am: New file + 2007-05-25 Sergey Poznyakoff * src/snarf.m4 (MF_OPTVAL): Fix a leftover bug @@ -7,7 +15,7 @@ assigned. * src/bi_dns.m4, src/bi_db.m4: Use MF_OPTVAL insted of MF_DEFINED. * src/bi_sa.m4: Avoid splitting strings within NLS markers, - because M4 inserts line directives in between, which cause grief + because M4 inserts line directives in between, which causes grief for many compilers. * src/Makefile.am (.m4.c): Fix the sed rule * src/mtasim.c (recursive_rmdir): Do not complain when attempting diff --git a/Makefile.am b/Makefile.am index 09b28270..76f997e5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,7 @@ # MA 02110-1301 USA AUTOMAKE_OPTIONS = gnits 1.8.5 std-options -SUBDIRS = lib gacopyz src mflib po etc doc tests +SUBDIRS = lib gacopyz src mflib elisp po etc doc tests ACLOCAL_AMFLAGS = -I m4 distuninstallcheck_listfiles = find . -type f -not -name 'mailfromd.rc' -print diff --git a/configure.ac b/configure.ac index bdaf8e45..f3cd2046 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,14 @@ AH_BOTTOM([#ifndef HAVE_ARGCV_UNESCAPE_CHAR #endif ]) +### Check for Emacs site-lisp directory +AM_PATH_LISPDIR + +if test "$EMACS" != "no"; then + lisp_LISP='$(LISPSRC)' +fi +AC_SUBST(lisp_LISP) + # Gettext. AM_GNU_GETTEXT([external], [need-formatstring-macros]) AM_GNU_GETTEXT_VERSION([0.16]) @@ -584,6 +592,7 @@ AC_CONFIG_FILES([Makefile gacopyz/Makefile src/Makefile mflib/Makefile + elisp/Makefile po/Makefile.in etc/Makefile doc/Makefile]) diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi index 22cc5d98..4b2f14ac 100644 --- a/doc/mailfromd.texi +++ b/doc/mailfromd.texi @@ -9494,6 +9494,7 @@ words: @item __minor__ @item __package__ @item __patch__ +@item __preproc__ @item __version__ @item accept @item add diff --git a/elisp/Makefile.am b/elisp/Makefile.am new file mode 100644 index 00000000..ba30843d --- /dev/null +++ b/elisp/Makefile.am @@ -0,0 +1,21 @@ +# This file is part of mailfromd +# Copyright (C) 2007 Sergey Poznyakoff +# +# 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; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 USA. + +LISPSRC = mfl-mode.el +lisp_LISP=@lisp_LISP@ +EXTRA_DIST=$(LISPSRC) diff --git a/elisp/mfl-mode.el b/elisp/mfl-mode.el new file mode 100644 index 00000000..e69de29b -- cgit v1.2.1