GNU bug report logs - #2107
temp-file-name-pattern vs temporary-file-directory

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>

Date: Thu, 29 Jan 2009 16:55:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 2107 in the body.
You can then email your comments to 2107 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#2107; Package emacs. (Thu, 29 Jan 2009 16:55:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 29 Jan 2009 16:55:04 GMT) Full text and rfc822 format available.

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

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: bug-gnu-emacs <at> gnu.org
Subject: temp-file-name-pattern vs temporary-file-directory
Date: Thu, 29 Jan 2009 17:45:21 +0100
Recently I learned about the variable temp-file-name-pattern when
under odd circumstances I didn't have access to /tmp. I was
surprised that the default value of this variable was
/tmp/emacsXXXXXX, thus ignoring my setting of
temporary-file-directory. Shouldn't temp-file-name-pattern take into
account the value of temporary-file-directory?


In GNU Emacs 22.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-03-27 on tfkp07
configured using `configure  '--with-gcc' '--with-x-toolkit=athena''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: en_GB.utf8
  value of $LANG: en_US.iso885915
  locale-coding-system: iso-8859-15
  default-enable-multibyte-characters: t





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2107; Package emacs. (Thu, 29 Jan 2009 19:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 29 Jan 2009 19:10:03 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roland Winkler <Roland.Winkler <at> physik.uni-erlangen.de>,
        2107 <at> debbugs.gnu.org
Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory
Date: Thu, 29 Jan 2009 21:00:04 +0200
> Date: Thu, 29 Jan 2009 17:45:21 +0100
> From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
> Cc: 
> 
> Recently I learned about the variable temp-file-name-pattern when
> under odd circumstances I didn't have access to /tmp. I was
> surprised that the default value of this variable was
> /tmp/emacsXXXXXX, thus ignoring my setting of
> temporary-file-directory. Shouldn't temp-file-name-pattern take into
> account the value of temporary-file-directory?

It looks at $TMPDIR, at least for me.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2107; Package emacs. (Thu, 29 Jan 2009 19:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 29 Jan 2009 19:15:03 GMT) Full text and rfc822 format available.

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

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 2107 <at> debbugs.gnu.org
Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory
Date: Thu, 29 Jan 2009 20:09:37 +0100
On Thu Jan 29 2009 Eli Zaretskii wrote:
> > From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
> > Recently I learned about the variable temp-file-name-pattern when
> > under odd circumstances I didn't have access to /tmp. I was
> > surprised that the default value of this variable was
> > /tmp/emacsXXXXXX, thus ignoring my setting of
> > temporary-file-directory. Shouldn't temp-file-name-pattern take into
> > account the value of temporary-file-directory?
> 
> It looks at $TMPDIR, at least for me.

Ah, $TMPDIR is an environment variable I didn't know about. I have
customized temporary-file-directory to point to a directory that is
used only by emacs. I would expect temp-file-name-pattern recognizes
such a setting, too.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2107; Package emacs. (Thu, 29 Jan 2009 22:20:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 29 Jan 2009 22:20:04 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Roland Winkler <Roland.Winkler <at> physik.uni-erlangen.de>
Cc: 2107 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory
Date: Thu, 29 Jan 2009 17:13:20 -0500
> Recently I learned about the variable temp-file-name-pattern when
> under odd circumstances I didn't have access to /tmp. I was
> surprised that the default value of this variable was
> /tmp/emacsXXXXXX, thus ignoring my setting of
> temporary-file-directory. Shouldn't temp-file-name-pattern take into
> account the value of temporary-file-directory?

It looks like temp-file-name-pattern is specific to call-process-region,
and predates temporary-file-directory.  call-process-region indeed
should be updated to use either make-temp-file or at least
temporary-file-directory.  And temp-file-name-pattern should be dropped.


        Stefan





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2107; Package emacs. (Thu, 29 Jan 2009 22:20:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 29 Jan 2009 22:20:06 GMT) Full text and rfc822 format available.

Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. (Fri, 30 Jan 2009 18:25:03 GMT) Full text and rfc822 format available.

Notification sent to "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>:
bug acknowledged by developer. (Fri, 30 Jan 2009 18:25:03 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Stefan Monnier <monnier <at> iro.umontreal.ca>,
        2107-done <at> debbugs.gnu.org
Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory
Date: Fri, 30 Jan 2009 13:17:54 -0500
I've removed temp-file-name-pattern, and changed call-process-region to
use temporary-file-directory.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 28 Feb 2009 15:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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