Skip to content

Commit

Permalink
Call reftex-parse-all before searching for labels
Browse files Browse the repository at this point in the history
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
  • Loading branch information
atreyasha committed Mar 24, 2021
1 parent 291c283 commit 0fdd561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions company-reftex.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fdd561

Please sign in to comment.