branch: externals/auctex-cont-latexmk commit c1aa3aafe1e0e3116df920c0fdc7f3fc6c6fbdc8 Author: Paul Nelson <ultr...@gmail.com> Commit: Paul Nelson <ultr...@gmail.com>
first attempt at fixing narrowing issues --- czm-tex-compile.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/czm-tex-compile.el b/czm-tex-compile.el index e752fc70a1..9141eceb05 100644 --- a/czm-tex-compile.el +++ b/czm-tex-compile.el @@ -197,8 +197,12 @@ nil if the error is not found." (let ((truncated-prefix (substring prefix (max 0 (- (length prefix) - 3))))) - (search-forward truncated-prefix nil t))))))) + 3)))) + (line-end (line-end-position)) + (bol (point))) + (or + (search-forward truncated-prefix line-end t) + bol))))))) (when pos (cons pos (1+ pos)))))))