emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Move files when using org-babel-tangle-publish


From: Antero Mejr
Subject: [PATCH] Move files when using org-babel-tangle-publish
Date: Fri, 17 Nov 2023 16:30:07 +0000

When publishing using org-babel-tangle-publish to the same directory
that contains the org files, copy-file will signal an error, since the
source and destination files refer to the same file. So use rename-file
instead.

When publishing to a different directory, this change also cleans up the
old files, which matches the behavior of the other publishing functions
like org-html-publish-to-html.

Attachment: 0001-Move-files-when-using-org-babel-tangle-publish.patch
Description: Text Data


reply via email to

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