From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs in ~/.cache
Date: Tue, 22 Aug 2023 21:22:07 +0200 [thread overview]
Message-ID: <87a5ui9928.fsf@dataswamp.org> (raw)
In-Reply-To: 871qfvrsgg.fsf@gmx.de
Michael Albinus wrote:
>>> Tramp 2.7 (of Emacs 30) uses ~/.cache/emacs as temporary
>>> directory, if possible. The reason are
>>> security considerations.
>>
>> I have a Tramp socket file there on Debian, it is the
>> only file.
>>
>> It gets more secure that way?
>
> ~/.cache has 0700 file permissions. Other users have
> no access.
>
>> What happens if you remove that directory, will it still
>> work the next time, just a similar file has to be created
>> first before use?
>
> If you remove it while Emacs is running you're lost.
> Don't do that!
>
> When Tramp is loaded, and ~/.cache exists, ~/.cache/emacs
> will be (re-)created if it doesn't exist. Otherwise, /tmp
> will be used (or whatever value of
> temporary-file-directory).
>
> See the initialization of
> tramp-compat-temporary-file-directory in tramp-compat.el.
Thank you, this was a pleasant explanation.
--
underground experts united
https://dataswamp.org/~incal
prev parent reply other threads:[~2023-08-22 19:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-13 12:17 emacs in ~/.cache Colin Baxter
2023-08-13 12:24 ` Eli Zaretskii
2023-08-13 15:43 ` Colin Baxter
2023-08-13 16:18 ` Eli Zaretskii
2023-08-13 16:16 ` Sven Joachim
2023-08-13 13:52 ` Michael Albinus
2023-08-13 15:38 ` Colin Baxter
2023-08-13 16:13 ` Michael Albinus
2023-08-13 17:42 ` Colin Baxter
2023-08-19 21:56 ` Emanuel Berg
2023-08-22 15:45 ` Michael Albinus
2023-08-22 19:22 ` Emanuel Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a5ui9928.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).