> < ^ Date: Sat, 25 Jan 2003 15:44:04 +0100
> < ^ From: Dmitrii Pasechnik <d.pasechnik@twi.tudelft.nl >
< ^ Subject: Re: Edit() in WinXP

Dear Gap-Forum,

On Fri, Jan 24, 2003 at 11:40:21PM -0500, Bruce W. Colletti wrote:
> If you use WinXP and have Edit() invoking your favorite text editor, please share how you did it. I can't figure it out: neither the manual nor kind guidance from the support staff have panned out. Specifically, what files did you change and what exactly did you type.
>
this is a tricky one. What is the editor that you want to start?
It must be runnable in the command line window, where the GAP is being
run. IMHO you cannot make Edit() to pop up a window for you.

Suppose you have such an editor, say "vi.exe", and it is on
C:\vi\vi.exe

Then set within GAP (or in .gaprc) the variable EDITOR:

gap> EDITOR:="/cygdrive/c/vi/vi.exe";

It should work then.

The reason for the syntax weirdness that Gap interfaces M$ Windows
via Cygwin (www.cygwin.com), a POSIX emulator; each Windows "drive"
is mapped to /cygdrive/"drive", and then you must replace \ by /
in the path...

HTH,
Dmitrii

----
Dr. D.V. Pasechnik
Theoretische Informatik
Fachbereich Biologie und Informatik
J.W. Goethe-Universitaet
Robert-Mayer Str.11-15
Postfach 11 19 32
60054 Frankfurt(Main)
Germany

email: dima@thi.informatik.uni-frankfurt.de
tel.:    +49-(0)69 798 28235
fax:     +49-(0)69 798 28814
http://www.thi.informatik.uni-frankfurt.de/~dima/

> < [top]