TobiasZawada / texfrag

Emacs package for previewing LaTeX fragments such as in doxygen comments.
GNU General Public License v3.0
68 stars 4 forks source link

Use temporary-file-directory for texfrag-LaTeX-file if directory of buffer-file-name is read-only #14

Open TobiasZawada opened 5 years ago

TobiasZawada commented 5 years ago

Creation of texfrag directory fails if the directory of buffer-file-name is read-only.

Use (temporary-file-directory) for default-directory in texfrag-LaTeX-file instead in such cases.

It is important to use make-temp-file to avoid clashes between different files with the same base name. Who does clean up the mess? (We should, but when?)