bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: server.el hardcodes directory /tmp


From: Klaus Straubinger
Subject: Re: server.el hardcodes directory /tmp
Date: Fri, 3 Aug 2007 14:40:56 +0200 (W. Europe Daylight Time)

Eli Zaretskii <eliz@gnu.org> wrote:

> server-socket-dir is not used on Windows, AFAIK (it is pertinent to
> the method of communicating between emacsclient and the server that
> cannot work on Windows)

As of Emacs 22.1, this is correct. But it may change in the future.

> so I think it's okay for it to cater only for Unix and GNU systems.

Emacs runs on many different operating systems.

> As to server-temp-file-regexp, it sounds like it is specific to
> certain applications other than Emacs which use temporary file names
> that match this regexp.

The documentation of this variable is not entirely clear to me.
It does not tell me in which way the files that match this regexp
are handled differently than all other files.

> Did you have specific problems with any of these applications on
> Windows due to the value of server-temp-file-regexp?

Actually not. I just wondered about the default setting.
In my opinion, temporary-file-directory should be preferred over
"/tmp/" or whatever directly set directory, simply because then it
would work on all operating systems when set correctly in one place.

> The reason I'm asking is that making this regexp be more
> Windows-friendly requires one to know where do the applications for
> which this option was introduced store their temporary files.

For which Unix/GNU applications does the default apply?

>> My suggestion would be to use the variable temporary-file-directory
>> instead.
>
> Assuming the respective applications put their files there on Windows,
> I agree.

It could only be an improvement. For typical Unix/GNU systems,
temporary-file-directory is set to "/tmp/" anyway.

-- 
Klaus Straubinger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]