Fix og--get-terms-oneshot for non-file path-spec

This commit is contained in:
TEC 2022-08-07 17:45:24 +08:00
parent 7a18d9d5ea
commit 02d7ae3c50
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ TERM-GETTER will be called with three arguments: the term source, t, and `alread
(mapcar
(lambda (location)
(org-glossary--parse-include-value
location (file-name-directory (plist-get path-spec :file))))
location (and (plist-get path-spec :file)
(file-name-directory (plist-get path-spec :file)))))
(org-element-map parse-tree 'keyword
(lambda (kwd)
(when (string= "INCLUDE" (org-element-property :key kwd))