From 0fdd561ad9e9baa2af6e3aab05db0e9a9870d247 Mon Sep 17 00:00:00 2001 From: Atreya Shankar <35427332+atreyasha@users.noreply.github.com> Date: Wed, 24 Mar 2021 15:59:54 +0100 Subject: [PATCH] Call reftex-parse-all before searching for labels This commit addresses issue #11 by calling `(reftex-parse-all)` before searching for label candidates. This ensures that reftex parses all new labels and loads them before searching using the input prefix --- company-reftex.el | 1 + 1 file changed, 1 insertion(+) diff --git a/company-reftex.el b/company-reftex.el index 8066b26..ca8613e 100644 --- a/company-reftex.el +++ b/company-reftex.el @@ -226,6 +226,7 @@ For more information on COMMAND and ARG see `company-backends'." (defun company-reftex-label-candidates (prefix) "Find all label candidates matching PREFIX." (reftex-access-scan-info) + (reftex-parse-all) (cl-loop for entry in (symbol-value reftex-docstruct-symbol) if (and (stringp (car entry)) (string-prefix-p prefix (car entry))) collect