forked from mirrors/org-mode
oc-basic: Fix detecting changes in symlinked bibliography
* lisp/oc-basic.el (org-cite-basic--parse-bibliography): Use `file-truename' to follow symlinks first before checking bibliography file change times. Reported-by: Leo Butler <Leo.Butler@umanitoba.ca> Link: https://orgmode.org/list/877cpmkds1.fsf@t14.reltub.ca
This commit is contained in:
parent
1665283f25
commit
3c3db7b337
|
@ -272,6 +272,9 @@ Optional argument INFO is the export state, as a property list."
|
|||
(plist-get info :cite-basic/bibliography)
|
||||
(let ((results nil))
|
||||
(dolist (file (org-cite-list-bibliography-files))
|
||||
;; Follow symlinks, to look into modification time of the
|
||||
;; actual file, not its symlink.
|
||||
(setq file (file-truename file))
|
||||
(when (file-readable-p file)
|
||||
(with-temp-buffer
|
||||
(when (or (org-file-has-changed-p file)
|
||||
|
|
Loading…
Reference in New Issue