Sweep defines a handler for the Emacs function expand-file-name
that recognizes Prolog file specifications, such as
library(lists)
, and expands them to their corresponding
absolute paths. This means that you can use Prolog file
specifications with Emacs’s standard find-file
(C-x C-f)
to locate Prolog resources directly.
For example, typing C-x C-f library(pldoc/doc_man) RET
opens the source of the pldoc_man
module from the Prolog
library, and C-x C-f pack(.) RET opens the Prolog packages
directory.