emacs-devel
[Top][All Lists]
Advanced

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

Re: doc-view cache file permissions


From: Stefan Monnier
Subject: Re: doc-view cache file permissions
Date: Tue, 30 Oct 2007 20:52:28 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>>> +    ;; Try and make sure doc-view-cache-directory exists and is safe.
> [...]
>> Is that worthy of being the basis of a more generally available
>> `make-secure-directory' function?

> Isn't `make-temp-file' with `dir-flag' set supposed to create a secure
> directory?

Yes, indeed.  But the author of doc-view decided to try and keep the png
images (generated from the .pdf or .dvi file) and reuse them across
invocations if the file hasn't changed in between.
So the "temporary" directory needs to be at a well-known location, so
make-temp-file can't be used.


        Stefan




reply via email to

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