Hi Martin, hello Waldek,

I've added a few commands to make Martin's fricas.el, fricas-cpl.el and 
efricas available.

After

./configure && make && make install

there will be a script "efricas" in bindir (the same place  where the 
fricas script is). Furthermore there will be

${prefix}/lib/fricas/emacs/fricas.el
${prefix}/lib/fricas/emacs/fricas-cpl.el

Martin, could you check whether everything works fine? I seem to have 
problems to work with your mode. ENTER does not work as I would expect.

If everything works fine then, I'd like to get authorization to commit 
that patch to trunk.

After that I would like to get rid of fricas-cpl.el in the SVN 
repository since it should be generated.


Ralf

PS: Note that this patch should remove trunk/contrib/emacs/efricas from 
the repository. efricas will be generated at compile time to get the 
load-path for fricas.el right.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

==== Patch <emacs> level 1
Source: [No source]
Target: b0c55286-4f34-0410-a049-a1e7e93b0762:/trunk:413
        (https://fricas.svn.sourceforge.net/svnroot/fricas)
Log:
Installation procedure for efricas
=== Makefile.in
==================================================================
--- Makefile.in	(revision 413)
+++ Makefile.in	(patch emacs level 1)
@@ -26,8 +26,11 @@
 	all-lib all-lisp all-sman all-src
 
 .PHONY: all install $(AXIOM_SRC_TARGETS)
-all: all-ax
+all: all-ax all-contrib
 
+all-contrib:
+	cd contrib/emacs && ${MAKE}
+
 all-ax: all-src
 	@echo finished system build on `date` | tee >lastBuildDate
 
@@ -159,6 +162,8 @@
 	if test -n "@BUILD_ALDOR_INTERFACE@"; then \
 	    cd src/aldor && $(MAKE) install; \
 	fi
+	$(mkinstalldirs) '$(DESTDIR)@emacsdatadir@'
+	cd contrib/emacs && $(MAKE) install;
 	@echo 79 FriCAS installation finished.
 
 
=== configure
==================================================================
--- configure	(revision 413)
+++ configure	(patch emacs level 1)
@@ -728,6 +728,7 @@
 ALDOR
 SVN
 BUILD_ALDOR_INTERFACE
+emacsdatadir
 LIBOBJS
 LTLIBOBJS'
 ac_subst_files=''
@@ -8869,6 +8870,22 @@
 ###################################################################
 
 
+###################################################################
+## The following section deals with running fricas inside emacs.
+## The sources are expected in ${srcdir}/contrib/emacs.
+## The shell script efricas will be copied to ${bindir}.
+## The files fricas*.el should probably go to
+#    emacsdatadir=$pkgdatadir/emacs/site-lisp
+## but will currently be put into
+emacsdatadir=$libdir/fricas/emacs
+
+ac_config_files="$ac_config_files contrib/emacs/Makefile:config/var-def.mk:contrib/emacs/Makefile.in:config/setup-dep.mk"
+
+###################################################################
+
+
+
+
 ## We now generate the "document" script and support files at configure time.
 ## We put them in the build directory because they are intended to be
 ## build support utils only.
@@ -9451,6 +9468,7 @@
     "src/etc/Makefile") CONFIG_FILES="$CONFIG_FILES src/etc/Makefile:config/var-def.mk:src/etc/Makefile.in:config/setup-dep.mk" ;;
     "src/aldor/Makefile") CONFIG_FILES="$CONFIG_FILES src/aldor/Makefile:config/var-def.mk:src/aldor/Makefile.in:config/setup-dep.mk" ;;
     "src/aldor/Makefile2") CONFIG_FILES="$CONFIG_FILES src/aldor/Makefile2:config/var-def.mk:src/aldor/Makefile2.in:config/setup-dep.mk" ;;
+    "contrib/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/emacs/Makefile:config/var-def.mk:contrib/emacs/Makefile.in:config/setup-dep.mk" ;;
     "build/scripts/document") CONFIG_FILES="$CONFIG_FILES build/scripts/document:$srcdir/src/scripts/document.in" ;;
 
   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
@@ -9667,11 +9685,12 @@
 ALDOR!$ALDOR$ac_delim
 SVN!$SVN$ac_delim
 BUILD_ALDOR_INTERFACE!$BUILD_ALDOR_INTERFACE$ac_delim
+emacsdatadir!$emacsdatadir$ac_delim
 LIBOBJS!$LIBOBJS$ac_delim
 LTLIBOBJS!$LTLIBOBJS$ac_delim
 _ACEOF
 
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
     break
   elif $ac_last_try; then
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
=== configure.ac
==================================================================
--- configure.ac	(revision 413)
+++ configure.ac	(patch emacs level 1)
@@ -698,6 +698,21 @@
 ###################################################################
 
 
+###################################################################
+## The following section deals with running fricas inside emacs.
+## The sources are expected in ${srcdir}/contrib/emacs.
+## The shell script efricas will be copied to ${bindir}.
+## The files fricas*.el should probably go to
+#    emacsdatadir=$pkgdatadir/emacs/site-lisp
+## but will currently be put into
+emacsdatadir=$libdir/fricas/emacs
+AC_SUBST(emacsdatadir)
+AXIOM_MAKEFILE([contrib/emacs/Makefile])
+###################################################################
+
+
+
+
 ## We now generate the "document" script and support files at configure time.
 ## We put them in the build directory because they are intended to be 
 ## build support utils only.
=== contrib/emacs/efricas
==================================================================
--- contrib/emacs/efricas	(revision 413)
+++ contrib/emacs/efricas	(patch emacs level 1)
@@ -1,6 +0,0 @@
-#!/bin/sh -
-# this is a minimalistic script to start axiom in gnu emacs, using its axiom
-# mode.  To make it work, you have to move axiom.el to a place where emacs can
-# find it. For example, /usr/share/emacs/site-lisp/ should work.
-export AXIOMEDITOR='emacsclient +$line $name >/dev/null 2>&1'
-emacs --eval='(progn (server-start) (setq load-path  (cons (quote "~/emacs") load-path)) (setq auto-mode-alist (cons (quote ("\\.fri" . fricas-mode)) auto-mode-alist)) (require (quote fricas)))' -f fricas
=== contrib/emacs/Makefile.in
==================================================================
--- contrib/emacs/Makefile.in	(revision 413)
+++ contrib/emacs/Makefile.in	(patch emacs level 1)
@@ -0,0 +1,38 @@
[EMAIL PROTECTED]@
+
+default: efricas fricas.el fricas-cpl.el
+
+clean:
+	-rm efricas
+
+install_emacs_dir = @emacsdatadir@
+EMACSCMDS = \
+  (progn \
+    (server-start) \
+    (setq load-path (cons (quote \"${install_emacs_dir}\") load-path)) \
+    (setq auto-mode-alist \
+      (cons (quote (\"\\\\.fri\" . fricas-mode)) auto-mode-alist)) \
+    (require (quote fricas)))
+
+efricas:
+	echo "#!/bin/sh -" > $@
+	echo "AXIOMEDITOR='emacsclient +$$line $$name >/dev/null 2>&1'" >> $@
+	echo "export AXIOMEDITOR" >> $@
+	echo "if which emacs; then \\" >> $@
+	echo "emacs --eval '${EMACSCMDS}' -f fricas; \\" >> $@
+	echo "else \\" >> $@
+	echo "echo You must have installed emacs to run efricas.; fi" >> $@
+
+
+
+###################################################################
+# We need libaxiom.al and the .o (runtime support) files in the lib
+# subdirectory.
+install: install-emacs
+
+# Destination directory for the algebra files and aldor libraries.
+install_target_dir = $(DESTDIR)${install_emacs_dir}
+install-emacs:
+	$(INSTALL_DATA) ${srcdir}/fricas.el $(install_emacs_dir)/fricas.el
+	$(INSTALL_DATA) ${srcdir}/fricas-cpl.el $(install_emacs_dir)/fricas-cpl.el
+	$(INSTALL_SCRIPT) efricas '$(DESTDIR)$(bindir)/efricas'

==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.08 (linux)

eJztV81vG8cVX/Tg2kyaIu3FNlpgLK8tboIlud9cKSKoiBRJyfqwyUQpwoCd3Z0VF1rtUvuhWPCq
9YpfsRsnBtKmgFH0A760KOpDLkUPAfIn9Fag5wJFb7n30rdcypYa2UWRHrtYYjkzv/ebN2/ee/Nm
2WvNl7moVCpENFeImm+vzs1t4kDvXoMWLUfEsALXo6XIJvvEpoXIdrdpMXLwLoHRAHvbJCiVOBAu
psLVicAxiZhwaDhwHZ9WJ2SdwCOE5iKlXIzKfFQWQDTiYNDtEafjuW4A9LzE8TDYSVTSbdcnnUS0
LEXwApw/hpuWDVxctIZ3SPI/ZzkTtinDBCycAquR7jqmtR165CtI8TQt/wyaw/pX0BLNiSncsDyi
w6IPaCURCTxLO4kWknVI03U8wwIiWb+UjuJezz7oBOR2YBA7wJNFCnxkSqYq6JpJlILBaQViFAsG
lkSF50UsFiSYR5bA7usU9fvoD+dejc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