[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request
From: |
Raoul Comninos |
Subject: |
Re: Feature request |
Date: |
Sun, 17 Jan 2021 10:15:37 +0200 |
Ihor Radchenko <yantar92@gmail.com> writes:
> I think something like the following will do (untested):
>
> (defun org-attach-save-file-list-to-property ()
> "Save list of attachments to ORG_ATTACH_FILES property."
> (when-let* ((dir (org-attach-dir))
> (files (org-attach-file-list dir)))
> (org-set-property "ORG_ATTACH_FILES" (mapconcat #'identity files ", "))))
> (add-hook 'org-attach-after-change-hook
> #'org-attach-save-file-list-to-property)
>
> Best,
> Ihor
I have copied the code to my dot Emacs, but now when I try to add an attachment
now, it generates this error:
run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of
attachments to ORG_ATTACH_FILES property." (when-let* ((dir
(org-attach-dir)) (files (org-attach-file-list dir))) (org-set-property
"ORG_ATTACH_FILES" (mapconcat #'identity files ", ")))), 1
Can you help me with this?
Kind regards,
Raoul Comninos
- Feature request, Raoul Comninos, 2021/01/15
- Re: Feature request, Ihor Radchenko, 2021/01/17
- Re: Feature request, Raoul Comninos, 2021/01/17
- Re: Feature request, Ihor Radchenko, 2021/01/17
- Re: Feature request, Ihor Radchenko, 2021/01/17
- Re: Feature request,
Raoul Comninos <=
- Re: Feature request, Ihor Radchenko, 2021/01/17
- Re: Feature request, Raoul Comninos, 2021/01/17
- Re: Feature request, Ihor Radchenko, 2021/01/17
- Re: Feature request, Detlef Steuer, 2021/01/18
- Re: Feature request, Raoul Comninos, 2021/01/17
- Re: Feature request, Ihor Radchenko, 2021/01/17
Re: Feature request, Ihor Radchenko, 2021/01/17