]> git.eshelyaron.com Git - dict.git/commitdiff
Announce recent changes in NEWS.org and bump version to 0.9.2 V9.1.0-sweep-0.9.2
authorEshel Yaron <me@eshelyaron.com>
Sat, 26 Nov 2022 14:25:41 +0000 (16:25 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 26 Nov 2022 14:25:41 +0000 (16:25 +0200)
NEWS.org
README.org
sweeprolog.el

index c2d11d1f7ee04bd956aace3421ab69a7098c65cd..ff34374bd517a652438482f41294d7ba58b715b3 100644 (file)
--- a/NEWS.org
+++ b/NEWS.org
@@ -11,6 +11,20 @@ SWI-Prolog in Emacs.
 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
index c85916af60827df3e388d38eabb0eab7fbae8939..a0a09df773a7862cf380e88d99217775d25b001c 100644 (file)
@@ -1159,8 +1159,8 @@ analyzes the current buffer and adds or updates ~autoload/2~ and
 
 #+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.
 
index b726e66eb2b5909541c9a09876aba38a09f0b9c8..ced7f4987cbbec5f67c7b2d18e2b4d753b6d10ee 100644 (file)
@@ -6,7 +6,7 @@
 ;; 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.
@@ -2067,7 +2067,9 @@ resulting list even when found in the current clause."
                                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