unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* TRAMP and encrypted archive access
@ 2023-08-13 15:58 Ihor Radchenko
  2023-08-13 16:22 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Ihor Radchenko @ 2023-08-13 15:58 UTC (permalink / raw)
  To: emacs-devel, Michael Albinus

Hi,

I am studying options to extend org-crypt encryption to attachment files
in addition to text inside Org buffers.

I do know that Emacs allows transparent access to encrypted files and I
also know that TRAMP is able to open archive files (like .tar)
transparently as directories.

I thought that combining these two features should just work™, but
apparently it is not the case. If I create a foo.tar file, I can open it
with TRAMP. But the encrypted version of foo.tar.gpg file does not work
- it opens in tar-mode instead.

Am I missing something? Or may my idea be silly?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TRAMP and encrypted archive access
  2023-08-13 15:58 TRAMP and encrypted archive access Ihor Radchenko
@ 2023-08-13 16:22 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2023-08-13 16:22 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-devel

Ihor Radchenko <yantar92@posteo.net> writes:

> Hi,

Hi Ihor,

> I am studying options to extend org-crypt encryption to attachment files
> in addition to text inside Org buffers.
>
> I do know that Emacs allows transparent access to encrypted files and I
> also know that TRAMP is able to open archive files (like .tar)
> transparently as directories.
>
> I thought that combining these two features should just work™, but
> apparently it is not the case. If I create a foo.tar file, I can open it
> with TRAMP. But the encrypted version of foo.tar.gpg file does not work
> - it opens in tar-mode instead.

The combination as in foo.tar.gpg/ is not supported yet in
tramp-archive. tramp-archive supports compressed files, not encrypted
ones. Yet.

> Am I missing something? Or may my idea be silly?

Might be possible, but I need to think about.

For your own purposes in org-crypt, you must ensure that foo.tar.gpg,
after decryption, is opened at foo.tar/ - the trailing slash matters.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-13 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-13 15:58 TRAMP and encrypted archive access Ihor Radchenko
2023-08-13 16:22 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).