From jan@swi.psy.uva.nl Tue Feb 20 15:05:00 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f1KE50Z08441;
	Tue, 20 Feb 2001 15:05:00 +0100 (MET)
Received: (from jan@localhost)
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id PAA30546;
	Tue, 20 Feb 2001 15:05:00 +0100
Date: Tue, 20 Feb 2001 15:05:00 +0100
Message-Id: <200102201405.PAA30546@gollem.swi.psy.uva.nl>
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Subject: Re: swi prolog 4.0 + PCE emacs editor
To: Pablo Lopez <lopez@lcc.uma.es>
In-Reply-To: Pablo Lopez's message of Tue, 20 Feb 2001 14:15:17 +0100
Phone: +31 - 20 - 525 6121
Cc: prolog@gollem.swi.psy.uva.nl

Pablo,

> Now that XPCE is integrated with SWI-Prolog, I have 
> decided to move to the wonderful PCE emacs.
> 
> To access PCE emacs, I just add this line to my
> initialization file:
> 
>   :- ensure_load(library('emacs/swi_prolog')).
> 
> so that PCE emacs shall become the default editor.
> 
> However, the behavior of edit/1 does change:
> 
>    1.- SWI-Prolog is no longer waiting for the editor
>        to stop.
> 
>    2.- the file being edited is not automatically loaded 
>        into SWI-Prolog if modified.
> 
> How can I recover the old behavior of edit/1 while 
> using PCE emacs?

You can't (unless you want to do some programming of course).
At any time, just save your files and type

	?- make.

which will reload all modified files.  This is what I normally use.
In addition, there is a menu option `Make' in the Prolog menu that
checks for modified buffers and next runs make.  This option is bound
to ^C^M. (Control-C-Control-M) There is also ^C^B for compiling the
current buffer.

The good point of this is that you can happily look at your source
while playing with your program.

	Cheers --- Jan

P.s.	If you experience ugly greenish background colouring you can
	fetch the latest version, uploaded monday 19 feb.

