From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Toru TSUNEYOSHI" Newsgroups: gmane.emacs.bugs Subject: bug#1081: make-temp-file Date: Sun, 5 Oct 2008 02:42:06 +0900 Message-ID: Reply-To: Toru TSUNEYOSHI , 1081@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223145433 3436 80.91.229.12 (4 Oct 2008 18:37:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2008 18:37:13 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 20:38:12 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmC15-0002WA-8l for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 20:38:11 +0200 Original-Received: from localhost ([127.0.0.1]:51612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmC02-0007B8-08 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Oct 2008 14:37:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmBZp-0005KH-Ly for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 14:10:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmBZn-0005Jb-L2 for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 14:10:01 -0400 Original-Received: from [199.232.76.173] (port=52399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmBZn-0005JK-8X for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 14:09:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49309) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmBZm-0006km-P0 for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 14:09:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m94I9uul029830; Sat, 4 Oct 2008 11:09:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m94Ho2xo024401; Sat, 4 Oct 2008 10:50:02 -0700 X-Loop: don@donarmstrong.com Resent-From: "Toru TSUNEYOSHI" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 04 Oct 2008 17:50:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1081 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122314213823164 (code B ref -1); Sat, 04 Oct 2008 17:50:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Oct 2008 17:42:18 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m94HgEhk023158 for ; Sat, 4 Oct 2008 10:42:15 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmB8w-0004qu-9n for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 13:42:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmB8t-0004qi-SM for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 13:42:13 -0400 Original-Received: from [199.232.76.173] (port=48736 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmB8t-0004qf-MI for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 13:42:11 -0400 Original-Received: from bay0-omc3-s21.bay0.hotmail.com ([65.54.246.221]:31489) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KmB8t-0002uO-94 for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2008 13:42:11 -0400 Original-Received: from hotmail.com ([207.46.10.12]) by bay0-omc3-s21.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 4 Oct 2008 10:42:10 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 4 Oct 2008 10:42:10 -0700 Original-Received: from 124.155.30.210 by BAY121-DAV2.phx.gbl with DAV; Sat, 04 Oct 2008 17:42:07 +0000 X-Originating-IP: [124.155.30.210] X-Originating-Email: [t_tuneyosi@hotmail.com] X-Sender: t_tuneyosi@hotmail.com X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1933 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 X-OriginalArrivalTime: 04 Oct 2008 17:42:10.0331 (UTC) FILETIME=[872046B0:01C92648] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 04 Oct 2008 14:10:01 -0400 X-Mailman-Approved-At: Sat, 04 Oct 2008 14:36:50 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21105 Archived-At: Hello. I don't know the following is a bug or not (on Emacs 22.3). But I will report it. temporary-file-directory => "/tmp/" example 1: (make-temp-file "test") => "/tmp/test13247c2" example 2: (make-temp-file "") => "/tmp1324tmF" Of course, example 1 is OK. On the other hand, example 2 is OK? In example 2, the function don't make temporary file under "/tmp" directory. Even if PREFIX is empty string, the function should make under "/tmp" directory, I think. example of revision in (defun make-temp-file): (setq file (make-temp-name (expand-file-name prefix temporary-file-directory))) => (setq file (make-temp-name (if (string-equal prefix "") temporary-file-directory (expand-file-name prefix temporary-file-directory))))