From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nobrowser@gmail.com Newsgroups: gmane.emacs.help Subject: temporary file name, with a twist Date: 7 Sep 2006 08:31:32 -0700 Organization: http://groups.google.com Message-ID: <1157643092.523576.197680@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1157643672 22014 80.91.229.2 (7 Sep 2006 15:41:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 15:41:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 07 17:41:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLLzV-0006Gn-Dc for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Sep 2006 17:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLLzU-0001Qa-Vl for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Sep 2006 11:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 69.194.204.172 Original-X-Trace: posting.google.com 1157643097 2143 127.0.0.1 (7 Sep 2006 15:31:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 7 Sep 2006 15:31:37 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=69.194.204.172; posting-account=YFHMlw0AAAAi2Uh6TQSJVnQoj9NpSiGG Original-Xref: shelby.stanford.edu gnu.emacs.help:141588 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37210 Archived-At: 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