Ralf writes:

> >> So I think that:
> >>  - fricas mode should take fricas location from a variable, if
> >>    this variable is unset default to plain 'fricas'
> >>  - efricas should set this variable to full pathname of fricas.
> 
> Interesting. :-)
> 
> What variable should that be? Such a variable must then have been set by 
> a user. No, that is certainly not the way to go.

> > I agree.  I suggest a variable FRICASCMD, which holds the path to fricas.  
> > This
> > is more flexible than FRICASROOT.  Maybe we should also change the name from
> > AXIOMEDITOR to FRICASEDITOR globally, although this will break the 
> > installation
> > of many people...
> 
> Call ./configure --help and you will find
> 
>    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
> 
> where the standard for this is just [PREFIX].
> 
> So it is clear, where efricas and fricas live at configure time.

Yes, but I still don't know how to set this in Makefile.in.

> > BTW: ideally, maybe you could also test other shells.  I vaguely recall 
> > having
> > problems with a tcsh.
> 
> Ooops. That actually should not happen. The shell called from Make is 
> /bin/sh and not bash or tcsh. So whenever you again encounter again a 
> problem that you think is connected to the shell, report this as a bug.

Yes, I should.  Too many things on my mind.

> 1) efricas finds out about the full path to efricas. ("echo $0" should 
> be enough for that.) Then efricas calls fricas from the same path. Or 
> falls back to "fricas" if there is not "fricas" in the path to efricas.

I think that this is roughly what Waldek suggested.  The environment variable
is one possibility to communicate with emacs.  A different possibility would be
to modify fricas.el at configure time, but I think that this is not so good.

> I would even argue that the fallback is not wanted since one might call the
> wrong fricas.
> 
> 2) Remove efricas and introduce the option "--emacs" to fricas instead.

Would be fine for me.  In particular, this would open the way to a vim mode...

Waldek Hebisch <[EMAIL PROTECTED]> writes:

> I was actually thinking about Emacs Lisp variable -- it is probably
> more convenient for emacs users to have such variable at Lisp level.

OK, how about:

Index: fricas.el
===================================================================
--- fricas.el   (revision 426)
+++ fricas.el   (working copy)
@@ -122,6 +122,11 @@
   :type 'boolean
   :group 'fricas)
 
+(defcustom fricas-run-command
+  (or (getenv "FRICASCMD") "fricas")
+  "The command to run FriCAS."
+  :type 'file
+  :group 'fricas)
 
 (defvar fricas-beg-marker-regexp "\e|start[a-zA-Z]*|\n")
 (defvar fricas-end-marker-regexp "\e|endOf[a-zA-Z]*|\n")
@@ -294,7 +299,8 @@
   "Run FriCAS in the current BUFFER."
   (message "Starting FriCAS...")
   (start-process-shell-command "fricas" (current-buffer) 
-                              "fricas" "-noclef" "2>/dev/null"))
+                              fricas-run-command
+                              "-noclef" "2>/dev/null"))
 
 (defun fricas-check-proc (buffer)
   "Return non-nil if there is a living process associated w/buffer BUFFER.




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