[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
temporary file name, with a twist
From: |
nobrowser |
Subject: |
temporary file name, with a twist |
Date: |
7 Sep 2006 08:31:32 -0700 |
User-agent: |
G2/0.2 |
Hello,
in my lisp code, I need to get a unique temporary file name, but _with
a specific suffix_. There doesn't seem to be a built-in or an easy
lispy way of doing this. As for devious ways, on Debian there is the
tempfile program but I don't think this generalizes even to other Linux
distros. Or I could use the maildir scheme:
${hostname}_${emacs_pid}_${timestamp}.${suffix}, but how to portably
get the hostname? mail-host-name can't be used because the very point
is to distinguish between distinct host at the same site.
This must have been done before ...
Thanks,
i