Prevent recursive og--register-buffer-dependencies

This commit is contained in:
TEC 2022-08-07 00:39:05 +08:00
parent 50e7446191
commit 6da6d51ca2
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ When NO-NUMBER is non-nil, no reference number shall be inserted."
(extras (mapcar #'org-glossary--parse-include-value
(plist-get term-cache :extra-term-sources))))
(org-glossary--deregister-buffer-dependencies path-spec)
(dolist (dep-pspec (nconc extras included))
(dolist (dep-pspec (delete path-spec (nconc extras included)))
(if-let ((dep-files (assoc dep-pspec org-glossary--path-dependencies)))
(unless (member path-spec dep-files)
(push path-spec (cdr dep-files)))