GNU bug report logs - #1081
make-temp-file

Previous Next

Package: emacs;

Reported by: "Toru TSUNEYOSHI" <t_tuneyosi <at> hotmail.com>

Date: Sat, 4 Oct 2008 17:50:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1081 in the body.
You can then email your comments to 1081 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1081; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Toru TSUNEYOSHI" <t_tuneyosi <at> hotmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Toru TSUNEYOSHI" <t_tuneyosi <at> hotmail.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: make-temp-file
Date: Sun, 5 Oct 2008 02:42:06 +0900
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))))





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Toru TSUNEYOSHI" <t_tuneyosi <at> hotmail.com>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 1081-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 1081-done <at> debbugs.gnu.org
Subject: Re: bug#1081: make-temp-file
Date: Sat, 04 Oct 2008 16:29:52 -0400
"Toru TSUNEYOSHI" wrote:

>     (make-temp-file "")
>     => "/tmp1324tmF"

2008-10-04  Glenn Morris  <rgm <at> gnu.org>

    * files.el (make-temp-file): Handle empty `prefix'. (Bug#1081)




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Sun, 02 Nov 2008 15:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.