analyzes the current buffer and adds or updates ~autoload/2~ and
~use_module/2~ as needed.
+#+VINDEX: sweeprolog-note-implicit-autoloads
+By default, when ~flymake~ integration is enabled (see [[#diagnostics][Examining
+diagnostics]]), calls to implicitly autoloaded predicates are detected
+and marked as note-level diagnostics. To inhibit ~flymake~ from
+diagnosing implicit autoloads, customize the user option
+~sweeprolog-note-implicit-autoloads~ to nil.
+
* Prolog Help
:PROPERTIES:
:CUSTOM_ID: prolog-help
:type 'boolean
:group 'sweeprolog)
+(defcustom sweeprolog-note-implicit-autoloads t
+ "If non-nil, `flymake' notes implicitly autoload predicates."
+ :package-version '((sweeprolog "0.9.2"))
+ :type 'boolean
+ :group 'sweeprolog)
+
(defcustom sweeprolog-enable-eldoc t
"If non-nil, enable `eldoc' suport in `sweeprolog-mode' buffers."
:package-version '((sweeprolog "0.4.7"))
(`("goal" "undefined" ,f ,a)
(cons :warning
(format "Undefined predicate %s/%s" f a)))
+ (`("goal" ("autoload" . ,file) . ,_)
+ (when sweeprolog-note-implicit-autoloads
+ (cons :note
+ (substitute-command-keys
+ (format "Implicit autoload from %s, use \\[sweeprolog-update-dependencies] to add dependecy directive"
+ file)))))
("instantiation_error"
(cons :warning "Instantiation error"))
("type_error"