From 24fe2b82fe3df8be650a1961a03d2b6a5f602b98 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Thu, 10 Nov 2022 22:37:14 +0200 Subject: [PATCH] FIXED: possible error in sweeprolog-describe-predicate --- sweeprolog.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sweeprolog.el b/sweeprolog.el index 3e96f56..0aa088a 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -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 -- 2.39.2