]> git.eshelyaron.com Git - dict.git/commit
Avoid excessive analysis in presence of unbalanced quotes
authorEshel Yaron <me@eshelyaron.com>
Sat, 31 Dec 2022 11:10:17 +0000 (13:10 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 31 Dec 2022 11:10:17 +0000 (13:10 +0200)
commitc12165da9bea83316c6e92db71eb85f75b31be9b
treeeb5a142372c88e253ed6e9f9fd78f6e8f6c89191
parent62598c156619943b5b00d3a04fbdcd97db864317
Avoid excessive analysis in presence of unbalanced quotes

* sweeprolog.el (sweeprolog-analyze-fragment-fullstop): new function,
adds a dedicated text property to fullstops.
(sweeprolog-analyze-region-fragment-hook): add it.
(sweeprolog-at-fullstop-p)
(sweeprolog-end-of-last-fullstop, sweeprolog-end-of-next-fullstop):
new functions.
(sweeprolog-end-of-top-term): use them for restricting to region
between last fullstop and next fullstop.
sweeprolog.el