From clive.matthews@uea.ac.uk Thu Feb 15 13:17:05 2001
Received: from mailgate2.uea.ac.uk (mailgate2.uea.ac.uk [139.222.230.101])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f1FCH4Z28338
	for <prolog@swi.psy.uva.nl>; Thu, 15 Feb 2001 13:17:04 +0100 (MET)
Received: from [139.222.130.16] (helo=mailserver1.uea.ac.uk)
	by mailgate2.uea.ac.uk with esmtp (Exim 3.02 #1)
	id 14TNLL-001zz8-00
	for prolog@swi.psy.uva.nl; Thu, 15 Feb 2001 12:17:03 +0000
Received: from [139.222.142.82] (helo=eurcm)
	by mailserver1.uea.ac.uk with smtp (Exim 3.02 #1)
	id 14TNLL-00002j-00
	for prolog@swi.psy.uva.nl; Thu, 15 Feb 2001 12:17:03 +0000
Message-ID: <3A8BCEC8.30E8@uea.ac.uk>
Date: Thu, 15 Feb 2001 12:42:48 +0000
From: clive.matthews@uea.ac.uk
X-Mailer: Mozilla 3.04 (WinNT; I)
MIME-Version: 1.0
To: prolog@swi.psy.uva.nl
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] Editing

This might seem stupid but I'm having problems getting a 
simple editor to work. I have used SWI-Prolog version 1.9.5 
for some time (actually, if it's 1.9.5 it must be a very 
long time) and found that typing:

	?- setenv(editor, notepad).

as  the first line in a session works fine: when I use 
edit/1 the system either loads the required file if already 
created or asks if I want to create such a file if not.

	Having up-graded to version 4.0.0 (running under 
both Windows 98 and NT) I find that this no longer works. 
>From the on-line documentation it looks like I don't need 
to use setenv/2 since edit/1 should default to Notepad. 
However, all I get is:

   ?- edit('foo.pl').
   WARNING: Cannot find anything to edit from "'foo.pl'"
   No

Using setenv/2 doesn't help. What am I doing wrong?

Clive Matthews

