Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing files within archives via tar-mode doesn't work #258

Open
piater opened this issue Feb 21, 2024 · 0 comments
Open

Writing files within archives via tar-mode doesn't work #258

piater opened this issue Feb 21, 2024 · 0 comments

Comments

@piater
Copy link

piater commented Feb 21, 2024

Steps to Reproduce the behaviour

  1. Create a tar archive containing a PDF file, say, archive.tar.
  2. Find the tar archive.
  3. Choose the PDF file contained therein, say, file.pdf.
  4. Alter it, e.g. by adding annotations.
  5. 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: c69e765

This is perhaps best fixed jointly with #257 by changing the file-saving logic of pdf-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant