all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nobrowser@gmail.com
Subject: temporary file name, with a twist
Date: 7 Sep 2006 08:31:32 -0700	[thread overview]
Message-ID: <1157643092.523576.197680@b28g2000cwb.googlegroups.com> (raw)

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

             reply	other threads:[~2006-09-07 15:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-07 15:31 nobrowser [this message]
2006-09-07 16:20 ` temporary file name, with a twist Miles Bader
     [not found] ` <mailman.6588.1157646012.9609.help-gnu-emacs@gnu.org>
2006-09-07 16:33   ` nobrowser
2006-09-07 18:16 ` Reiner Steib
2006-09-08  5:52   ` nobrowser
2006-09-08  6:30     ` David Kastrup
2006-09-08  7:05     ` Reiner Steib
2006-09-08 13:24       ` nobrowser

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1157643092.523576.197680@b28g2000cwb.googlegroups.com \
    --to=nobrowser@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.