emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] org-attach-attach: fix symlinks


From: Matt Price
Subject: [PATCH] org-attach-attach: fix symlinks
Date: Mon, 15 Nov 2021 08:22:55 -0500

I'm having trouble with org-attach-attach if my current buffer is visiting a filepath starting with "~/". This trivial patch fixes the problem for me by running (expand-file-name) on the file before attaching. I always use the 'lns method, so I don't know whether it might be better to expand-file-name before running any of the methods.

Alternatively, it might actually be better to use a *relative* file path where possible (e.g. to ensure that project directories are fully portable), but I'm  not sure how best to do that. 

This should be a tinychange, but also I have signed FSF paperwork.

Attachment: 0001-org-attach-attach-expand-file-names-before-linking.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]