pdf-tools
pdf-tools copied to clipboard
Writing files within archives via tar-mode doesn't work
Steps to Reproduce the behaviour
- Create a tar archive containing a PDF file, say,
archive.tar
. - Find the tar archive.
- Choose the PDF file contained therein, say,
file.pdf
. - Alter it, e.g. by adding annotations.
- Save it with C-x C-s.
This errors out with a message like the following:
Saving file /path/archive.tar!./file.pdf...
run-hook-with-args-until-success: Opening output file: No such file or directory, /path/archive.tar!./file.pdf
What is the expected behaviour?
archive.tar
is replaced with a tar archive containing the altered file.pdf
, transparently created by tar-mode
.
Your pdf-tools install Status: Installed in ‘pdf-tools-20230611.239/’ (unsigned). Version: 20230611.239 Commit: c69e7656a4678fe25afbd29f3503dd19ee7f9896
This is perhaps best fixed jointly with #257 by changing the file-saving logic of pdf-tools.