4.4.1 Customizing the editor interface
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Editor Interface
          • Customizing the editor interface
            • prolog_edit:locate/3
            • prolog_edit:locate/2
            • prolog_edit:edit_source/1
            • prolog_edit:edit_command/2
            • prolog_edit:load/0
    • Packages
prolog_edit:edit_source(+Location)
Start editor on Location. See prolog_edit:locate/3 for the format of a location term. This multifile predicate is normally not defined. If it succeeds, edit/1 assumes the editor is started.

If it fails, edit/1 uses its internal defaults, which are defined by the Prolog flag editor and/or the environment variable EDITOR. The following rules apply. If the Prolog flag editor is of the format $<name>, the editor is determined by the environment variable <name>. Else, if this flag is pce_emacs or built_in and XPCE is loaded or can be loaded, the built-in Emacs clone is used. Else, if the environment EDITOR is set, this editor is used. Finally, vi is used as default on Unix systems and notepad on Windows.

See the default user preferences file customize/init.pl for examples.