From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fwd: server.el hardcodes directory /tmp Date: Fri, 03 Aug 2007 02:13:20 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186122083 30134 80.91.229.12 (3 Aug 2007 06:21:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2007 06:21:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 03 08:21:20 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IGqXI-0006AD-9t for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 08:21:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGqXH-0000z4-LF for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 02:21:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IGqXD-0000y7-FU for emacs-devel@gnu.org; Fri, 03 Aug 2007 02:21:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IGqXB-0000x2-8g for emacs-devel@gnu.org; Fri, 03 Aug 2007 02:21:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IGqXB-0000wg-42 for emacs-devel@gnu.org; Fri, 03 Aug 2007 02:21:13 -0400 Original-Received: from tomts16.bellnexxia.net ([209.226.175.4] helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IGqX6-00084N-Lt; Fri, 03 Aug 2007 02:21:08 -0400 Original-Received: from pastel.home ([74.12.204.109]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070803062107.UKUX574.tomts16-srv.bellnexxia.net@pastel.home>; Fri, 3 Aug 2007 02:21:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D96A18986; Fri, 3 Aug 2007 02:13:20 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Thu\, 02 Aug 2007 23\:37\:41 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75984 Archived-At: > Would someone please DTRT and ack? > If the bug is in Emacs 22, please fix it in Emacs 22. > ------- Start of forwarded message ------- > X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY > autolearn=failed version=3.1.0 > Date: Thu, 2 Aug 2007 12:56:42 +0200 (W. Europe Daylight Time) > From: Klaus Straubinger > To: bug-gnu-emacs@gnu.org > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > Subject: server.el hardcodes directory /tmp > In server.el the variables server-temp-file-regexp and > server-socket-dir contain direct references to the directory "/tmp" > which are not appropriate in operating systems like Microsoft Windows. > The second one is not even customizable. > My suggestion would be to use the variable temporary-file-directory > instead. The problem is that the location needs to be agreed upon between server.el and emacsclient. Since emacsclient does not have access to Elisp in general and temporary-file-directory in particular, this is not an option. I guess server-socket-dir could/should use something else than /tmp under w32, tho I have no idea what value would make sense. Also maybe this could obey $TEMP and/or $TMPDIR, assuming the same value is used for both the `emacs' and the `emacsclient' processes (which is not a necessarily correct assumption, sadly). Stefan