Ralf Hemmecke <[EMAIL PROTECTED]> writes:

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

There is one bug I know of, which happens *sometimes* at startup. The symptom
is that you get a *fricas* buffer, first line empty, while the second line
contains just "(1) -> ", and up to and including that last blank, everything is
in the default output colour.  Point should be just after the blank after "(1)
->".

If you hit enter in this situation, the second line should then contain
"(1) -> (1) -> ", where the second prompt is *not* coloured.  Thereafter,
everything should work fine.

Expected behaviour is, that *fricas* contains something like the following at
startup - depending on the underlying lisp, where the last prompt is
uncoloured:

-- gcl ------------------------------------------------------------------------
(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) -> 
-- sbcl -----------------------------------------------------------------------
(1) -> (1) -> 
Value = #<INTERPRETED-FUNCTION NIL {B865395}>
(1) -> 
-- ecl ------------------------------------------------------------------------
(1) -> (1) -> Value = #<bytecompiled-function #<bytecompiled-function 
0000000000f2f820>>
(1) ->
-------------------------------------------------------------------------------

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

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?

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

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


Ralf, many many thanks,

Martin


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