PublicShow sourceedit.pl -- Editor interface

This 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.

Sourceedit(+Spec)
Edit indicated object.
Sourceedit
Edit associated or script file. This is the Prolog file opened by double-clicking or the file loaded using
% swipl [-s] file.pl
Sourcelocate(+Spec, -FullSpec, -Location)[multifile]
Sourcelocate(+Spec, -Location)[multifile]
Locate object from the specified location.
Sourceedit_command(+Editor, -Command)[multifile]
This predicate should specify the shell-command called to invoke the user's editor. The following substitutions will be made:
%ePath name of the editor
%fPath name of the file to be edited
%dLine number of the target
Sourceselect_location(+Pairs, +UserSpec, -Location)[multifile]