all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1081: make-temp-file
@ 2008-10-04 17:42 ` Toru TSUNEYOSHI
  2008-10-04 20:40   ` bug#1081: marked as done (make-temp-file) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Toru TSUNEYOSHI @ 2008-10-04 17:42 UTC (permalink / raw)
  To: bug-gnu-emacs

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))))







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#1081: marked as done (make-temp-file)
  2008-10-04 17:42 ` bug#1081: make-temp-file Toru TSUNEYOSHI
@ 2008-10-04 20:40   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2008-10-04 20:40 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]


Your message dated Sat, 04 Oct 2008 16:29:52 -0400
with message-id <wxbpy0f6in.fsf@fencepost.gnu.org>
and subject line Re: bug#1081: make-temp-file
has caused the Emacs bug report #1081,
regarding make-temp-file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1081: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1081
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3180 bytes --]

From: "Toru TSUNEYOSHI" <t_tuneyosi@hotmail.com>
To: <bug-gnu-emacs@gnu.org>
Subject: make-temp-file
Date: Sun, 5 Oct 2008 02:42:06 +0900
Message-ID: <BAY121-DAV29D93AF8F6F1223138242E23F0@phx.gbl>

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))))




[-- Attachment #3: Type: message/rfc822, Size: 1631 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 1081-done@emacsbugs.donarmstrong.com
Subject: Re: bug#1081: make-temp-file
Date: Sat, 04 Oct 2008 16:29:52 -0400
Message-ID: <wxbpy0f6in.fsf@fencepost.gnu.org>

"Toru TSUNEYOSHI" wrote:

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

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

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-04 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <wxbpy0f6in.fsf@fencepost.gnu.org>
2008-10-04 17:42 ` bug#1081: make-temp-file Toru TSUNEYOSHI
2008-10-04 20:40   ` bug#1081: marked as done (make-temp-file) Emacs bug Tracking System

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.