psychosis <psycho...@disroot.org> writes: > Ok, for me it does not seem to work as intended. The old cite-key turns > immediately red if and if only I insert the new cite-key on the same > line. For it to turn red if I insert it on other lines, I have to kill > the buffer and reload it. I used “emacs -Q” with the attached files.
Thanks! I understand now. What you see is expected. This behaviour has been there before the patch. What I was asking to test is whether org-cite can detect changes in bibliography made outside Emacs. Those changes are only reflected in the link colour during next fontification. Already fontified links are not going to be updated (we can actually do it, but it can degrade performance even further). When you insert a link at a new line, only that newly inserted link will be fontified taking into account changes in the bibliography. The old link is already fontified from Emacs' point of view and hence will not be updated. When you insert a link at the same line with previous, Emacs detects changes made in the line and re-fontifies the whole line (single line is the minimal possible fontified region in Emacs by default). Hence, both the old link and the newly inserted link get fontified according to the updated bibliography. Best, Ihor