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

> Hm, it seems that it doesn't work on your machine, does it?  What emacs 
> version
> do you have there?

Well, I think the problem was that efricas calls "fricas" and not fricas 
with a full path. So at the time of writing it called my previous 
installation. Now I have removed that and everything seems to work. 
Still, I hate to see the initial stuff

(1) -> (1) ->
Value = (LAMBDA-CLOSURE () () () (X &OPTIONAL ARGS)
           (PRINC (CODE-CHAR 27))
           (COND
             ((AND (EQ X '|startKeyedMsg|)
                   (MEMBER (CAR ARGS) '('S2GL0012 'S2GL0013 'S2GL0014)))
              (PRINC "|startTypeTime|"))
             ((AND (EQ X '|endOfKeyedMsg|)
                   (MEMBER (CAR ARGS) '('S2GL0012 'S2GL0013 'S2GL0014)))
              (PRINC "|endOfTypeTime|"))
             (T (PRIN1 X)))
           (PRINC #\Newline))
(1) ->

in the *fricas* buffer (which cannot even be deleted by hand). But maybe 
that can be resolved later.

> Some more comments:
> 
>> +all: all-ax all-contrib
>>  
>> +all-contrib:
>> +    cd contrib/emacs && ${MAKE}

> I'm not sure, but maybe making the emacs mode should be conditional?

Why? Putting a few bytes into bin and lib/fricas does not really hurt. 
And then try to deinstall emacs and run "efricas" and see what happens. 
;-) Maybe it is easier to just investigate that script.

>> +###################################################################
>> +## 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

> I think that emacsdatadir should be customizable.  Maybe you look into the
> configure of gcl, they also seem to try to detect the site-lisp directory.
> Although we decided that we won't do that, maybe you find some suggestions
> there.

I am not trying to detect anything with emacsdatadir. If the prefix is 
/usr/local or just /usr, then $pkgdatadir/emacs/site-lisp expands to ... 
Oh wait... it should be just $datadir not $pkgdatadir. So it expands to:
/usr/local/share/emacs/site-lisp. Which is correct, at least for debian. 
  Unfortunately, I don't know about other distributions.

But as you see efricas sets the load-path for emacs, so it doesn't 
really matter where fricas.el actually live. And for people who know 
emacs, they know how to adjust their .emacs file if the want to start 
fricas inside their already running emacs.

>> +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" >> $@

> I'm not sure whether emacsclient comes with emacs for emacs 21, by the way...

Well, it is your code, I've just copied it. I hope, I am not responsible 
for finding out about emacsclient. I can only tell that I have the 
debian etch installation of emacs (21.4.1) and emacsclient is accessible.

Ralf

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to