]> git.eshelyaron.com Git - sweep.git/commitdiff
FIXED: possible error in sweeprolog-describe-predicate
authorEshel Yaron <me@eshelyaron.com>
Thu, 10 Nov 2022 20:37:14 +0000 (22:37 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 10 Nov 2022 20:37:14 +0000 (22:37 +0200)
sweeprolog.el

index 3e96f56383267cd1196de4926d9e9a6ef6a8c3e3..0aa088a44eef789e6df2673106e8d06097a45f74 100644 (file)
@@ -3584,12 +3584,14 @@ if-then-else constructs in SWI-Prolog."
                                (concat " is a SWI-Prolog predicate.\n\n"
                                        page)
                              " is an undocumented SWI-Prolog predicate.")
-                           (when props
-                             (sweeprolog--render-predicate-properties props))))
+                           (if props
+                               (sweeprolog--render-predicate-properties props)
+                             "")))
           (if page
               (insert pred " is a SWI-Prolog predicate.\n\n" page
-                      (when props
-                        (sweeprolog--render-predicate-properties props)))
+                      (if props
+                          (sweeprolog--render-predicate-properties props)
+                        ""))
             (insert pred " is not documented as a SWI-Prolog predicate.")))))))
 
 ;;;###autoload