🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gmane.comp.ai.prolog.swi
2 messages
2 total messages Started by <zimmermann@h-u- Fri, 19 Apr 2002 16:03
trouble with notepad
#35
Author: <zimmermann@h-u-
Date: Fri, 19 Apr 2002 16:03
44 lines
924 bytes
Hi,
after upgrading to vers. 5.0.5 (WIN 98SE) the edit command will not
invoke notepad:

% d:/programmieren/swi-prolog/pl/pl.ini compiled 0.00 sec, 424 bytes
% d:/Programmieren/SWI-Prolog/PL/DEMO/LIKES.PL compiled 0.00 sec, 2,228 bytes
Welcome to SWI-Prolog (Version 5.0.5)

?- getenv('EDITOR',E).

E = notepad ;

No
?- edit(likes).
% Waiting for editor ...
% Editor returned failure; skipped make/0 to reload files

Yes
?-


Any help?

tia
H.-Ulrich

---------------------
mailto:zimmermann@h-u-zimmermann.de
http://www.h-u-zimmermann.de



----------------
* To UNSUBSCRIBE, please use the HTML form at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist

or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe"
(without the quotes) and *no* message body.

** An ARCHIVE of this list is maintained at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/

Re: trouble with notepad
#36
Author: Jan Wielemaker
Date: Fri, 19 Apr 2002 16:27
47 lines
1425 bytes
On Friday 19 April 2002 16:03, zimmermann@h-u-zimmermann.de wrote:
> Hi,
> after upgrading to vers. 5.0.5 (WIN 98SE) the edit command will not
> invoke notepad:
>
> % d:/programmieren/swi-prolog/pl/pl.ini compiled 0.00 sec, 424 bytes
> % d:/Programmieren/SWI-Prolog/PL/DEMO/LIKES.PL compiled 0.00 sec, 2,228
> bytes Welcome to SWI-Prolog (Version 5.0.5)
>
> ?- getenv('EDITOR',E).
>
> E = notepad ;
>
> No
> ?- edit(likes).
> % Waiting for editor ...
> % Editor returned failure; skipped make/0 to reload files
>
> Yes
> ?-

As of version 5.0.5, the preferred way to select an editor is using a prolog
flag.  Some examples:

:- set_prolog_flag(editor, notepad).
:- set_prolog_flag(editor, pce_emacs).	% Use built-in PceEmacs

There was a little bug making the use of the environment variable not work
properly as default.  You can fetch pl/library/edit.pl from the CVS server
and replace this file.  No further installation is needed.  I've replaced
the Windows executable w32pl505.exe, so you can also fetch the new version.

	Cheers --- Jan


----------------
* To UNSUBSCRIBE, please use the HTML form at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist

or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe"
(without the quotes) and *no* message body.

** An ARCHIVE of this list is maintained at

    http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads