texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] can't do "insert session" in texmacs


From: Vadim
Subject: Re: [Texmacs-dev] can't do "insert session" in texmacs
Date: Mon, 09 Jul 2007 20:29:47 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060501

I'm resending one month old letter again, its seemingly lost in space.
If it can't be of any use, please let me know this.

Best regards,
Vadim.


Joris van der Hoeven wrote:

>On Mon, Jun 11, 2007 at 08:53:17AM +0400, Vadim wrote:
>  
>
>>Should I send fixer patch for this problem?
>>    
>>
>
>Yes please; if you can find out a clean way to support Maxima under Cygwin,
>then we are very much interested.
>  
>

attached is a patch to slightly improve cygwin situation WRT maxima

It does not try to enlarge PATH variable by strange guesses, it just
assumes that 'maxima' is already in the PATH, which seems more
reasonable to me.

it does not solve the problem at 100%, but older maxima support isn't
any better.
For a better support different maxima version should be better
recognized (maxima based on cygwin lisp, or maxima built with foreign lisp)

As for supporting cygwin - right now latest TeXmacs on cygwin builds
smoothly, so it is very well supported right now, IMO.
I don't understand why cygwin binaries for texmacs from cygwin.com are
rather old.


One of things to improve for cygwin - is building with mingw (thus
omitting cygwin layer for final binaries)
I am not ready for this right now, but eventually may be I'll apply my
small efforts in this direction.

Best regards,
Vadim.

diff -ru TeXmacs-1.0.6.10-src-orig/plugins/maxima/bin/maxima_detect 
TeXmacs-1.0.6.10-src/plugins/maxima/bin/maxima_detect
--- TeXmacs-1.0.6.10-src-orig/plugins/maxima/bin/maxima_detect  2007-05-15 
21:54:34.000000000 +0400
+++ TeXmacs-1.0.6.10-src/plugins/maxima/bin/maxima_detect       2007-06-11 
21:23:30.000000000 +0400
@@ -36,20 +36,17 @@
   fi
 }
 
-PATH="/cygdrive/c/Program Files/Maxima-5.9.2/bin:$PATH"
-PATH="/cygdrive/c/Program Files/Maxima-5.9.3/bin:$PATH"
-export PATH
-
-MAXIMA=`type -p maxima 2>/dev/null`
+if [ $OSTYPE == "cygwin" ] ; then EXT='.bat'; else EXT=''; fi
+MAXIMA=`type -p maxima$EXT 2>/dev/null`
 if [ $? -eq 0 ]
 then
-  if [ -f "/usr/bin/cygwin1.dll" ]
+  if [ $OSTYPE == "cygwin" ]
   then
     if [ "$1" ]
     then
-      maxima.bat -d | grep -F 'maxima-htmldir=' | \
-        sed -e 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|' \
-           -e 's|\\|/|g' -e 's|C:|/cygdrive/c/|'
+      maxima -d | grep -F 'maxima-htmldir=' | \
+        sed -e 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|' | \
+       cygpath -f -
     else
       echo '("cygwin")'
     fi
diff -ru TeXmacs-1.0.6.10-src-orig/plugins/maxima/bin/tm_maxima 
TeXmacs-1.0.6.10-src/plugins/maxima/bin/tm_maxima
--- TeXmacs-1.0.6.10-src-orig/plugins/maxima/bin/tm_maxima      2007-05-15 
21:54:34.000000000 +0400
+++ TeXmacs-1.0.6.10-src/plugins/maxima/bin/tm_maxima   2007-06-11 
23:38:18.000000000 +0400
@@ -2,9 +2,6 @@
 
 TEXMACS_MAXIMA_PATH="$TEXMACS_PATH/plugins/maxima/lisp"
 export TEXMACS_MAXIMA_PATH
-PATH="/cygdrive/c/Program Files/Maxima-5.9.2/bin:$PATH"
-PATH="/cygdrive/c/Program Files/Maxima-5.9.3/bin:$PATH"
-export PATH
 
 case $1 in
   5.6)
@@ -22,12 +19,6 @@
   5.10.*) exec maxima -u $1 -l $2 -p 
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.10.0.lisp";;
   5.11.* | 5.12.*) exec maxima -u $1 -l $2 -p 
"$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
   cygwin)
-    CYGWIN_ROOT="C:\cygwin"
-    CYGWIN_TEXMACS_HOME=`echo $TEXMACS_HOME_PATH | sed 's|/|\\\\|g'`
-    export CYGWIN_TEXMACS_HOME
-    cp -f "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.2.lisp" \
-          "$CYGWIN_ROOT$CYGWIN_TEXMACS_HOME\system\tmp"
-    exec maxima.bat -p \
-      "$CYGWIN_ROOT$CYGWIN_TEXMACS_HOME\system\tmp\texmacs-maxima-5.9.2.lisp";;
+    exec maxima.bat -p "`echo 
$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp|cygpath --windows -f -`";;
   *) echo -e "\2latex:\\red Unsupported version of maxima: $1\5"
 esac


reply via email to

[Prev in Thread] Current Thread [Next in Thread]