From unknown Fri Aug 15 20:52:30 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2107: temp-file-name-pattern vs temporary-file-directory Reply-To: "Roland Winkler" , 2107@debbugs.gnu.org Resent-From: "Roland Winkler" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 29 Jan 2009 16:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2107 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123324753819671 (code B ref -1); Thu, 29 Jan 2009 16:55:04 +0000 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 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 unknown Fri Aug 15 20:52:30 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2107: temp-file-name-pattern vs temporary-file-directory Reply-To: Eli Zaretskii , 2107@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 29 Jan 2009 19:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2107 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2107-submit@emacsbugs.donarmstrong.com id=B2107.123325561620472 (code B ref 2107); Thu, 29 Jan 2009 19:10:03 +0000 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 In-reply-to: X-012-Sender: halo1@inter.net.il To: Roland Winkler , 2107@debbugs.gnu.org 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 unknown Fri Aug 15 20:52:30 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2107: temp-file-name-pattern vs temporary-file-directory Reply-To: "Roland Winkler" , 2107@debbugs.gnu.org Resent-From: "Roland Winkler" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 29 Jan 2009 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2107 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2107-submit@emacsbugs.donarmstrong.com id=B2107.123325618422817 (code B ref 2107); Thu, 29 Jan 2009 19:15:02 +0000 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 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 unknown Fri Aug 15 20:52:30 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2107: temp-file-name-pattern vs temporary-file-directory Reply-To: Stefan Monnier , 2107@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 29 Jan 2009 22:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2107 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12332672144004 (code B ref -1); Thu, 29 Jan 2009 22:20:04 +0000 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 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 unknown Fri Aug 15 20:52:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Roland Winkler" Subject: bug#2107 closed by Chong Yidong (Re: bug#2107: temp-file-name-pattern vs temporary-file-directory) Message-ID: References: <87k58clktp.fsf@cyd.mit.edu> X-Emacs-PR-Message: they-closed 2107 X-Emacs-PR-Package: emacs Reply-To: 2107@debbugs.gnu.org Date: Fri, 30 Jan 2009 18:25:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1233339903-14110-1" This is a multi-part message in MIME format... ------------=_1233339903-14110-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2107: temp-file-name-pattern vs temporary-file-directory It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 2107: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2107 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1233339903-14110-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1233339903-14110-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1233339903-14110-1--