Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000



student escreveu:
student wrote:

Ok, made a little more progress...

(1) Made sure the directory containing the SWI-Prolog executables was on my WINNT PATH (via

My Computer->Properties->Advanced->Environmental Variables|->System Variables->select variable name 'Path' -> click Edit... )

(2) Added the command

:- set_prolog_flag(editor,gvim).

by directly editing my 'pl.ini' file (apropos which more below).

(3) Ran SWI-Prolog and tried

?- current_prolog_flag(editor,Q).

Q = gvim

Great!

(4) Ran

?- edit('d:/misc/prolog/bell_numbers'). /* a known file */

and it came up in 'gvim'!

Fantastic!

(5)) Tried

?- edit(junk).
Warning: Cannot find anything to edit from "junk"
Warning: Use edit(file(junk)) to create a new file

Ok, expected that, so tried


?- edit(new(junk)).
Warning: Cannot find anything to edit from "new(junk)"

<expletive deleted>!

Any ideas, anyone?

How about you paying more attention to the warning messages:

<quote>
> Warning: Use edit(*file*(junk)) to create a new file
</quote>
.



Relevant Pages

  • Re: How to make the SWI-Prolog edit command invoke gvim instead of Notepad on Windows 2000
    ... Made sure the directory containing the SWI-Prolog executables was on my WINNT PATH (via ... Added the command ... Warning: Use edit) to create a new file ... Cannot find anything to edit from "new" ...
    (comp.lang.prolog)
  • how can I allow user to edit BUT NOT delete the records in a view?
    ... Add (the user can add new records but can't view or edit existing records), ... The Edit mode will enable Delete command. ... receiving any warning at all. ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • how can I allow user to edit BUT NOT delete the records in a view?
    ... Add (the user can add new records but can't view or edit existing records), ... The Edit mode will enable Delete command. ... receiving any warning at all. ... Prev by Date: ...
    (microsoft.public.access.macros)
  • Edit mailbox size limit message
    ... and issue a warning at 75mb, in order to give them enough of a cahnce to ... can we edit the message that comes from the "System ... because it says "Mailbox size limits: You will receive a warning when your ...
    (microsoft.public.exchange.admin)
  • Re: ActiveSync and Excel files
    ... that you get the warning message? ... The changes you make actually do sync back to the PC, ... time you sync you get the error message at the next edit and save (on the ... Excel's features aren't supported in the mobile version and might be lost ...
    (microsoft.public.pocketpc.activesync)