Fix AVATAR property value not exist problem

This commit is contained in:
stardiviner 2021-10-30 18:19:56 +08:00
parent c8408cf44e
commit 038a608e79

View file

@ -898,7 +898,7 @@ address."
(setq pom (or pom (point))) (setq pom (or pom (point)))
(catch 'icon (catch 'icon
;; Use `org-contacts-icon-property' ;; Use `org-contacts-icon-property'
(let ((image-path (let ((avatar (org-entry-get pom org-contacts-icon-property)) (let ((image-path (if-let ((avatar (org-entry-get pom org-contacts-icon-property))
(link-matcher-regexp "\\[\\[\\([^]]*\\)\\]\\(\\[\\(.*\\)\\]\\)?\\]")) (link-matcher-regexp "\\[\\[\\([^]]*\\)\\]\\(\\[\\(.*\\)\\]\\)?\\]"))
(cond (cond
;; [[file:dir/filename.png]] ;; [[file:dir/filename.png]]