From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2211: server-socket-dir and make-temp-file Date: Thu, 05 Feb 2009 14:51:02 -0500 Message-ID: References: Reply-To: Stefan Monnier , 2211@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233864371 6048 80.91.229.12 (5 Feb 2009 20:06:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 20:06:11 +0000 (UTC) Cc: 2211@emacsbugs.donarmstrong.com To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 21:07:24 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LVAUu-0007jr-1N for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 21:06:53 +0100 Original-Received: from localhost ([127.0.0.1]:48224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVATa-0004hk-VE for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 15:05:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVARr-0003x1-VE for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 15:03:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVARp-0003vT-2c for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 15:03:43 -0500 Original-Received: from [199.232.76.173] (port=35687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVARo-0003vF-Ft for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 15:03:40 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44801) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LVARn-0002zA-6c for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 15:03:40 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n15K3WvA029248; Thu, 5 Feb 2009 12:03:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n15K04sB028218; Thu, 5 Feb 2009 12:00:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 05 Feb 2009 20:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2211 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2211-submit@emacsbugs.donarmstrong.com id=B2211.123386347326881 (code B ref 2211); Thu, 05 Feb 2009 20:00:04 +0000 Original-Received: (at 2211) by emacsbugs.donarmstrong.com; 5 Feb 2009 19:51:13 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n15Jp9gK026875 for <2211@emacsbugs.donarmstrong.com>; Thu, 5 Feb 2009 11:51:11 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsIEAHzRiklFxIvi/2dsb2JhbACBbsBqCI1+gloIgTQGgwI X-IronPort-AV: E=Sophos;i="4.37,386,1231131600"; d="scan'208";a="33392332" Original-Received: from 69-196-139-226.dsl.teksavvy.com (HELO pastel.home) ([69.196.139.226]) by ironport2-out.teksavvy.com with ESMTP; 05 Feb 2009 14:51:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D319083D4; Thu, 5 Feb 2009 14:51:02 -0500 (EST) In-Reply-To: (Roland Winkler's message of "Thu, 05 Feb 2009 18:28:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 05 Feb 2009 15:03:43 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24981 Archived-At: > server-socket-dir is by default a directory in /tmp. With CVS emacs > it also takes the TMPDIR environment variable into account. > Shouldn't this variable be initialized using make-temp-file so that > it obeys any customization of temporary-file-directory? No, because emacsclient needs to access server-socket-dir but doesn't read the .emacs so can't adapt to changes in temporary-file-directory (it does pay attention to $TMPDIR, on the other hand). > Actually, I ran the following command in the emacs directory > $ grep "\"/tmp\"" lisp/*el lisp/*/*el > Browsing through the matches, it seems to me that > pmail-mime-attachment-dirs-alist and url-temporary-directory > should be updated, too. You're probably right on these ones. > A related issue: I do not quite understand a piece of code like > (make-temp-file > (concat (file-name-as-directory > (or (getenv "TMPDIR") "/tmp")) > "artist-stdin.")) > used in the function artist-system. If the PREFIX arg of > make-temp-file is an absolute directory as in the example above, > make-temp-file will ignore any user customization of > temporary-file-directory. The function ps-run-make-tmp-filename > behaves similarly. At first, I was going to say that (concat (file-name-as-directory (or (getenv "TMPDIR") "/tmp")) "artist-stdin.") should be replaced by (expand-file-name "artist-stdin." (or (getenv "TMPDIR") "/tmp")) but indeed, it's better to just skip it all and let `make-temp-file' use temporary-file-directory. Stefan