forked from mirrors/org-mode
org-lint-link-to-local-file: Expand environment variables in path
* lisp/org-lint.el (org-lint-link-to-local-file): Try to expand environment variables in file paths before testing if the linked file exists.
This commit is contained in:
parent
d3f587fadf
commit
68ba286fee
|
@ -656,6 +656,7 @@ Use :header-args: instead"
|
|||
path
|
||||
(org-with-point-at (org-element-begin l)
|
||||
(org-attach-expand path)))))
|
||||
(setq file (substitute-env-in-file-name file))
|
||||
(and (not (file-remote-p file))
|
||||
(not (file-exists-p file))
|
||||
(list (org-element-begin l)
|
||||
|
|
Loading…
Reference in New Issue