auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

main 267f34bc: Fix improved citation folding in case of multiple bad ref


From: Arash Esbati
Subject: main 267f34bc: Fix improved citation folding in case of multiple bad refs
Date: Mon, 21 Oct 2024 15:35:48 -0400 (EDT)

branch: main
commit 267f34bc862e74eefe3896a357cda409a8ac2ff5
Author: Paul Nelson <ultrono@gmail.com>
Commit: Arash Esbati <arash@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

[Prev in Thread] Current Thread [Next in Thread]