[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 0e575f97bb 4/6: FIXED: sweep_identifier_at_poin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 0e575f97bb 4/6: FIXED: sweep_identifier_at_point/2: possible infinite failure loop |
Date: |
Sat, 15 Oct 2022 07:59:14 -0400 (EDT) |
branch: elpa/sweeprolog
commit 0e575f97bbb91d61f64ce9d785dcb044b7216d91
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
FIXED: sweep_identifier_at_point/2: possible infinite failure loop
---
sweep.pl | 1 +
sweeprolog.el | 10 +++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/sweep.pl b/sweep.pl
index 3a9667b990..73dd6682b7 100644
--- a/sweep.pl
+++ b/sweep.pl
@@ -235,6 +235,7 @@ sweep_identifier_at_point_(Path0, Point, Contents,
Identifier) :-
prolog_colourise_term(Contents, Path,
sweep_handle_identifier_at_point(Path, M, Point),
[]),
+ !,
sweep_current_identifier_at_point(Identifier0),
term_string(Identifier0, Identifier).
diff --git a/sweeprolog.el b/sweeprolog.el
index 190498143c..6e25e55af4 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -2505,11 +2505,11 @@ Interactively, POINT is set to the current point."
(point)))
(contents (buffer-substring-no-properties beg end)))
(sweeprolog-open-query "user"
- "sweep"
- "sweep_identifier_at_point"
- (list contents
- (buffer-file-name)
- (- p beg)))
+ "sweep"
+ "sweep_identifier_at_point"
+ (list contents
+ (buffer-file-name)
+ (- p beg)))
(let ((sol (sweeprolog-next-solution)))
(sweeprolog-close-query)
(when (sweeprolog-true-p sol)
- [nongnu] elpa/sweeprolog updated (539b282908 -> c6ac1105d8), ELPA Syncer, 2022/10/15
- [nongnu] elpa/sweeprolog 7587649505 3/6: FIXED: disregard stderr when invoking write_sweep_module_location, ELPA Syncer, 2022/10/15
- [nongnu] elpa/sweeprolog c6ac1105d8 6/6: ADDED: new command for exporting Prolog predicates, ELPA Syncer, 2022/10/15
- [nongnu] elpa/sweeprolog af3c350764 5/6: DOC: mention new sweep Prolog flag in README.org and NEWS.org, ELPA Syncer, 2022/10/15
- [nongnu] elpa/sweeprolog 1798f9cf2e 1/6: Remove unused dependencies library(help) and library(prolog_server), ELPA Syncer, 2022/10/15
- [nongnu] elpa/sweeprolog 0e575f97bb 4/6: FIXED: sweep_identifier_at_point/2: possible infinite failure loop,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog f376b475d4 2/6: ENHANCED: create Prolog flag sweep=true when running under sweep, ELPA Syncer, 2022/10/15