
edit.pl -- Editor interfaceThis module implements the generic editor interface. It consists of two extensible parts with little in between. The first part deals with translating the input into source-location, and the second with starting an editor.
edit(+Spec)
edit% swipl [-s] file.pl
locate(+Spec, -FullSpec, -Location:dict)[multifile]
is_file_search_spec(@Spec) is semidet[private]
find_source(++FileSpec, =File) is semidet[private]
locate(+Spec, -Location)[multifile]
do_edit_source(+Location)[private]file(File) and may contain line(Line). First the
multifile hook edit_source/1 is called. If this fails the system
checks for XPCE and the prolog-flag editor. If the latter is
built_in or pce_emacs, it will start PceEmacs.
Finally, it will get the editor to use from the prolog-flag editor and use edit_command/2 to determine how this editor should be called.
run_pce_emacs(+URL) is semidet[private]
editor(-Editor)[private]
edit_command(+Editor, -Command)[multifile]| %e | Path name of the editor |
| %f | Path name of the file to be edited |
| %d | Line number of the target |
select_location(+Pairs, +UserSpec, -Location) is semidet[multifile]
existing_location(+Location) is semidet[private]
read_number(+Max, -X) is semidet[private]
short_filename(+Path, -Spec) is det[private]