emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/sweeprolog a22ccea7ae 2/4: * README.org: ("Managing Depend


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog a22ccea7ae 2/4: * README.org: ("Managing Dependencies"): new section.
Date: Sat, 26 Nov 2022 09:59:24 -0500 (EST)

branch: elpa/sweeprolog
commit a22ccea7ae1bd071bb22bf2c3f2f7f0d697e9725
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    * README.org: ("Managing Dependencies"): new section.
---
 README.org | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 2b5acd2740..2e29becc62 100644
--- a/README.org
+++ b/README.org
@@ -1111,10 +1111,9 @@ Emacs manual]]).
 :DESCRIPTION: Commands that facilitate writing Prolog unit tests
 :END:
 
-#+FINDEX: sweeprolog-plunit-testset-skeleton~
+#+FINDEX: sweeprolog-plunit-testset-skeleton
 #+CINDEX: plunit
 #+CINDEX: testing
-
 SWI-Prolog includes the =PlUnit= unit testing framework[fn:3], in which
 unit tests are written in special blocks of Prolog code enclosed
 within the directives ~begin_tests/1~ and ~end_tests/1~.  To insert a new
@@ -1139,6 +1138,24 @@ type ~C-M-m~ or ~M-RET~ to invoke 
~sweeprolog-insert-term-dwim~ (see
 
 [fn:3] See 
[[https://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/plunit.html%27)][Prolog
 Unit Tests in the SWI-Prolog manual]].
 
+** Managing Dependencies
+:PROPERTIES:
+:CUSTOM_ID: managing-dependencies
+:DESCRIPTION: Commands for managing dependencies of Prolog source files on 
each other
+:END:
+
+#+FINDEX: sweeprolog-update-dependencies
+#+KINDEX: C-c C-u
+#+CINDEX: dependencies
+#+CINDEX: autoload
+It is considered good practice for SWI-Prolog source files to
+explicitly list their dependencies on predicates defined in other
+files by using ~autoload/2~ and ~use_module/2~ directives.  To find all
+implicitly autoloaded predicates in the current ~sweeprolog-mode~ buffer
+and make the dependencies on them explicit, use the command ~M-x
+sweeprolog-update-dependencies~ bound to ~C-c C-u~.  This command
+analyzes the current buffer and adds or updates ~autoload/2~ and
+~use_module/2~ as needed.
 
 * Prolog Help
 :PROPERTIES:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]