4.4 Editor Interface
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Editor Interface
          • edit/1
          • edit/0
          • Customizing the editor interface
    • Packages
Availability::- use_module(library(edit)).(can be autoloaded)
Sourceedit(+Specification)
First, exploit prolog_edit:locate/3 to translate Specification into a list of Locations. If there is more than oneā€˜hit', the user is asked to select from the locations found. Finally, prolog_edit:edit_source/1 is used to invoke the user's preferred editor. Typically, edit/1 can be handed the name of a predicate, module, basename of a file, XPCE class, XPCE method, etc.