From unknown Sat Aug 16 10:43:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2107 <2107@debbugs.gnu.org> To: bug#2107 <2107@debbugs.gnu.org> Subject: Status: temp-file-name-pattern vs temporary-file-directory Reply-To: bug#2107 <2107@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:43:32 +0000 retitle 2107 temp-file-name-pattern vs temporary-file-directory reassign 2107 emacs submitter 2107 "Roland Winkler" severity 2107 normal thanks From Roland.Winkler@physik.uni-erlangen.de Thu Jan 29 08:45:38 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jan 2009 16:45:38 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.4 required=4.0 tests=FOURLA,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 n0TGjUO7019665 for ; Thu, 29 Jan 2009 08:45:32 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSa1B-0001vT-Tc for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 11:45:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSa19-0001qq-SL for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 11:45:29 -0500 Received: from [199.232.76.173] (port=58785 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSa19-0001qP-N7 for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 11:45:27 -0500 Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:2011) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSa18-0002pg-5H for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 11:45:26 -0500 Received: from tfkp04.physik.uni-erlangen.de (tfkp04.physik.uni-erlangen.de [131.188.164.204]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 9783C2205D for ; Thu, 29 Jan 2009 17:45:22 +0100 (CET) Date: Thu, 29 Jan 2009 17:45:21 +0100 Message-Id: From: "Roland Winkler" To: bug-gnu-emacs@gnu.org Subject: temp-file-name-pattern vs temporary-file-directory X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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 From eliz@gnu.org Thu Jan 29 11:00:16 2009 Received: (at 2107) by emacsbugs.donarmstrong.com; 29 Jan 2009 19:00:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout7.012.net.il (mtaout7.012.net.il [84.95.2.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0TJ0Cgt020017 for <2107@emacsbugs.donarmstrong.com>; Thu, 29 Jan 2009 11:00:13 -0800 Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KE800H00Y17R300@i-mtaout7.012.net.il> for 2107@emacsbugs.donarmstrong.com; Thu, 29 Jan 2009 21:00:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.107.148]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KE800LC0Y4NNAO0@i-mtaout7.012.net.il>; Thu, 29 Jan 2009 21:00:24 +0200 (IST) Date: Thu, 29 Jan 2009 21:00:04 +0200 From: Eli Zaretskii Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory In-reply-to: X-012-Sender: halo1@inter.net.il To: Roland Winkler , 2107@debbugs.gnu.org Reply-to: Eli Zaretskii Message-id: References: > Date: Thu, 29 Jan 2009 17:45:21 +0100 > From: "Roland Winkler" > 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. From Roland.Winkler@physik.uni-erlangen.de Thu Jan 29 11:09:44 2009 Received: (at 2107) by emacsbugs.donarmstrong.com; 29 Jan 2009 19:09:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from tfkpsv.physik.uni-erlangen.de (tfkpsv.physik.uni-erlangen.de [131.188.164.197]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0TJ9eEC022811 for <2107@emacsbugs.donarmstrong.com>; Thu, 29 Jan 2009 11:09:42 -0800 Received: from tfkp04.physik.uni-erlangen.de (tfkp04.physik.uni-erlangen.de [131.188.164.204]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 027F42205D; Thu, 29 Jan 2009 20:09:36 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18817.65265.96637.221548@tfkp04.physik.uni-erlangen.de> Date: Thu, 29 Jan 2009 20:09:37 +0100 From: "Roland Winkler" To: Eli Zaretskii Cc: 2107@debbugs.gnu.org Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory In-Reply-To: References: X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i686-pc-linux-gnu) On Thu Jan 29 2009 Eli Zaretskii wrote: > > From: "Roland Winkler" > > 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. From monnier@iro.umontreal.ca Thu Jan 29 14:13:33 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jan 2009 22:13:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.2 required=4.0 tests=HAS_BUG_NUMBER, MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 n0TMDQCa003991 for ; Thu, 29 Jan 2009 14:13:27 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSf8W-0007Xb-DJ for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:13:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSf8V-0007Vs-Jt for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:13:23 -0500 Received: from [199.232.76.173] (port=54434 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSf8V-0007VZ-4i for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:13:23 -0500 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:56268 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSf8U-00040N-SN for bug-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:13:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4FAMC4gUnO+LLC/2dsb2JhbACBbr0lCI1DgloIgS4GgkU X-IronPort-AV: E=Sophos;i="4.37,346,1231131600"; d="scan'208";a="32998705" Received: from 206-248-178-194.dsl.teksavvy.com (HELO pastel.home) ([206.248.178.194]) by ironport2-out.teksavvy.com with ESMTP; 29 Jan 2009 17:13:20 -0500 Received: by pastel.home (Postfix, from userid 20848) id 8C0497F9B; Thu, 29 Jan 2009 17:13:20 -0500 (EST) From: Stefan Monnier To: Roland Winkler Cc: 2107@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory Message-ID: References: Date: Thu, 29 Jan 2009 17:13:20 -0500 In-Reply-To: (Roland Winkler's message of "Thu, 29 Jan 2009 17:45:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > 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 From cyd@stupidchicken.com Fri Jan 30 10:17:26 2009 Received: (at 2107-done) by emacsbugs.donarmstrong.com; 30 Jan 2009 18:17:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0UIHKDu012789 for <2107-done@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 10:17:21 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 28C6B57E211; Fri, 30 Jan 2009 13:17:54 -0500 (EST) From: Chong Yidong To: "Roland Winkler" Cc: Eli Zaretskii , Stefan Monnier , 2107-done@debbugs.gnu.org Subject: Re: bug#2107: temp-file-name-pattern vs temporary-file-directory Date: Fri, 30 Jan 2009 13:17:54 -0500 Message-ID: <87k58clktp.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've removed temp-file-name-pattern, and changed call-process-region to use temporary-file-directory. From unknown Sat Aug 16 10:43:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Feb 2009 15:24:05 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator