branch: master commit dc40d6e81266eb4e2d50564cf1d47af55beafb03 Author: Ikumi Keita <ik...@ikumi.que.jp> Commit: Ikumi Keita <ik...@ikumi.que.jp>
Fix bug#64921 * style/biblatex.el (LaTeX-arg-biblatex-cites): Don't loop when RefTeX citation is done. --- style/biblatex.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/style/biblatex.el b/style/biblatex.el index 3254ce85..52e9e2ec 100644 --- a/style/biblatex.el +++ b/style/biblatex.el @@ -203,8 +203,8 @@ for citation keys." (TeX-argument-insert (TeX-read-string (TeX-argument-prompt t nil "Global postnote")) (equal prenote "")))) - (let ((items t) (noinsert nil)) - (while items + (let ((items t) (noinsert nil) (reftex--done nil)) + (while (and items (not reftex--done)) ;; Prompt for prenote and postnote of the current keys. (and TeX-arg-cite-note-p (not current-prefix-arg) (let ((TeX-arg-opening-brace "[") @@ -221,7 +221,11 @@ for citation keys." (fboundp 'reftex-plug-flag) (reftex-plug-flag 3)) ;; Use RefTeX when enabled. - (reftex-citation t) + (prog1 + (reftex-citation t) + ;; Don't loop when RefTeX citation is done. + ;; (bug#64921) + (setq reftex--done t)) ;; Multiple citation keys in each argument are allowed. (TeX-completing-read-multiple (TeX-argument-prompt optional prompt "Key(s)")