emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/sweeprolog 92f599fbbc 094/166: FIXED: premature cut in swe


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog 92f599fbbc 094/166: FIXED: premature cut in sweep_predicate_location/2
Date: Fri, 30 Sep 2022 04:59:29 -0400 (EDT)

branch: elpa/sweeprolog
commit 92f599fbbcb5b25557df067647f92cbef3491ae0
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    FIXED: premature cut in sweep_predicate_location/2
---
 sweep.pl | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sweep.pl b/sweep.pl
index 78f5dec08b..97241d4f6e 100644
--- a/sweep.pl
+++ b/sweep.pl
@@ -377,13 +377,16 @@ sweep_predicate_references(MFN, Refs) :-
 
 
 sweep_predicate_location(MFN, [Path|Line]) :-
-    !,
     term_string(M:F/N, MFN),
+    !,
     pi_head(F/N, H),
-    sweep_predicate_location_(M, H, Path, Line).
+    (   sweep_predicate_location_(M, H, Path, Line)
+    ->  true
+    ;   sweep_predicate_location_(H, Path, Line)
+    ).
 sweep_predicate_location(FN, [Path|Line]) :-
-    !,
     term_string(F/N, FN),
+    !,
     pi_head(F/N, H),
     sweep_predicate_location_(H, Path, Line).
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]