Did you know ... Search Documentation:
Predicate xref_open_source/2
 prolog:xref_open_source(+Id, -Stream) is semidet[multifile, 'pack_analyzer.pl']
If Id refers to a known Prolog pack, open the pack entry. A pack-file identifier is the path-name of the archive or pack directory, followed by the entry in the pack.
 prolog:xref_open_source(+Source, -Stream)[multifile, library(pce_prolog_xref)]
Open the PceEmacs as a Prolog stream.