For further details, please consult the manual:
<https://eshelyaron.com/sweep.html>.
+* Version 0.9.2 on 2022-11-26
+
+** New command ~sweeprolog-update-dependencies~
+
+Bound to ~C-c C-u~ in ~sweeprolog-mode~ buffers, this command analyzes the
+current buffer looking for calls to implicitly autoloaded predicates,
+and adds or updates ~autoload/2~ and ~use_module/2~ directives to make the
+dependencies on these predicates explicit.
+
+** New user option ~sweeprolog-note-implicit-autoloads~
+
+Boolean flag, when non-nil ~flymake~ also reports implicitly autoloaded
+predicates in ~sweeprolog-mode~ buffers. Enabled by default.
+
* Version 0.9.1 on 2022-11-25
** Predicate completion adjusts candidates arity according to the context
#+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
+diagnostics]]), calls to implicitly autoloaded predicates are marked
+and reported as ~flymake~ diagnostics. To inhibit ~flymake~ from
diagnosing implicit autoloads, customize the user option
~sweeprolog-note-implicit-autoloads~ to nil.
;; Maintainer: Eshel Yaron <~eshel/dev@lists.sr.ht>
;; Keywords: prolog languages extensions
;; URL: https://git.sr.ht/~eshel/sweep
-;; Package-Version: 0.9.1
+;; Package-Version: 0.9.2
;; Package-Requires: ((emacs "28.1"))
;; This file is NOT part of GNU Emacs.
f a)))
(`("goal" "undefined" ,f ,a)
(cons :warning
- (format "Undefined predicate %s/%s" f a)))
+ (substitute-command-keys
+ (format "Undefined predicate %s/%s, use \\[sweeprolog-insert-term-dwim] to define it"
+ f a))))
(`("goal" ("autoload" . ,file) . ,_)
(when sweeprolog-note-implicit-autoloads
(cons :note