From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] LaTeX preview should use a subdirectory in /tmp
Date: Tue, 26 Mar 2024 18:29:03 +0700 [thread overview]
Message-ID: <utubi0$12b0$1@ciao.gmane.io> (raw)
In-Reply-To: <utrrt0$g1g$1@ciao.gmane.io>
On 25/03/2024 19:49, Max Nikulin wrote:
> (defun org-ensure-tmp-dir (dir-symbol prefix)
> (let ((dir (symbol-value dir-symbol)))
> ;; Temporary directory has not been cleaned.
> (or (and dir (file-directory-p dir) dir)
`if' should be used instead of `or' here.
> (setf (symbol-value dir-symbol)
> (make-temp-file (or prefix "orgtmp-") 'dir)))))
>
> (defvar org-tex-tmpdir nil)
>
> Usage example: (org-ensure-tmp-dir 'org-tex-tmpdir "orgtex-")
I do not like that the function may be called with different
`temporary-file-directory' and I can not figure out how to adjust API to
handle such case. On the other hand I am unsure if it is a realistic
case when this function is called with alternating
`temporary-file-directory'.
next prev parent reply other threads:[~2024-03-26 11:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-25 10:40 [BUG] LaTeX preview should use a subdirectory in /tmp Max Nikulin
2024-03-25 11:40 ` Ihor Radchenko
2024-03-25 12:49 ` Max Nikulin
2024-03-26 11:29 ` Max Nikulin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-17 15:12 copropriete27ruemoret
2024-04-17 15:21 Emmanuel Charpentier
2024-04-17 16:48 ` Ihor Radchenko
2024-04-17 20:04 ` Emmanuel Charpentier
2024-04-17 20:18 ` Ihor Radchenko
2024-04-17 20:41 ` Emmanuel Charpentier
2024-04-18 12:23 ` Emmanuel Charpentier
2024-04-19 11:56 ` Ihor Radchenko
2024-04-19 15:00 ` emm.charpentier
2024-04-20 12:49 ` Max Nikulin
2024-05-02 10:30 ` Ihor Radchenko
2024-07-03 11:23 ` Ihor Radchenko
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='utubi0$12b0$1@ciao.gmane.io' \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).