branch: main
commit 267f34bc862e74eefe3896a357cda409a8ac2ff5
Author: Paul Nelson <ultr...@gmail.com>
Commit: Arash Esbati <ar...@gnu.org>

    Fix improved citation folding in case of multiple bad refs
    
    * tex-fold.el (TeX-fold-cite-display): Ignore bad refs.
    (bug#73840)
---
 tex-fold.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tex-fold.el b/tex-fold.el
index 328dc4b1..a79aca8d 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -887,8 +887,7 @@ using authors' last names and the the publication year."
                          (TeX-fold-item-end (point) 'macro)
                          '(?\[ . ?\]))))
          (key-list (split-string keys "[ \f\t\n\r\v,]+"))
-         (references
-          (mapcar #'TeX-fold--bib-abbrev key-list))
+         (references (delq nil (mapcar #'TeX-fold--bib-abbrev key-list)))
          (joined-references (string-join references ", ")))
     (concat "["
             (if (string-empty-p joined-references)

Reply via email to