Skip to content

Commit

Permalink
Merge pull request #12 from TheBB/as/ref-parse-all
Browse files Browse the repository at this point in the history
Call reftex-parse-all before searching for labels
  • Loading branch information
atreyasha committed Apr 18, 2021
2 parents 291c283 + 0fdd561 commit 42eb98c
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 42eb98c

Please sign in to comment.