* server.el hardcodes directory /tmp
@ 2007-08-02 10:56 Klaus Straubinger
2007-08-03 12:19 ` Eli Zaretskii
[not found] ` <mailman.4313.1186143557.32220.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Klaus Straubinger @ 2007-08-02 10:56 UTC (permalink / raw)
To: bug-gnu-emacs
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.
--
Klaus Straubinger
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: server.el hardcodes directory /tmp
2007-08-02 10:56 server.el hardcodes directory /tmp Klaus Straubinger
@ 2007-08-03 12:19 ` Eli Zaretskii
[not found] ` <mailman.4313.1186143557.32220.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2007-08-03 12:19 UTC (permalink / raw)
To: Klaus Straubinger; +Cc: bug-gnu-emacs
> Date: Thu, 2 Aug 2007 12:56:42 +0200 (W. Europe Daylight Time)
> From: Klaus Straubinger <KSNetz@UseNet.ArcorNews.DE>
>
> 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.
Thank you for your report.
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), so I think it's okay for it to cater only for
Unix and GNU 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. Did you have specific problems with any of
these applications on Windows due to the value of
server-temp-file-regexp? if so, could you please describe those
problems?
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.
> My suggestion would be to use the variable temporary-file-directory
> instead.
Assuming the respective applications put their files there on Windows,
I agree.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.4313.1186143557.32220.bug-gnu-emacs@gnu.org>]
* Re: server.el hardcodes directory /tmp
[not found] ` <mailman.4313.1186143557.32220.bug-gnu-emacs@gnu.org>
@ 2007-08-03 12:40 ` Klaus Straubinger
2007-08-03 21:47 ` Eli Zaretskii
2007-08-03 22:02 ` Richard Stallman
0 siblings, 2 replies; 5+ messages in thread
From: Klaus Straubinger @ 2007-08-03 12:40 UTC (permalink / raw)
To: bug-gnu-emacs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: server.el hardcodes directory /tmp
2007-08-03 12:40 ` Klaus Straubinger
@ 2007-08-03 21:47 ` Eli Zaretskii
2007-08-03 22:02 ` Richard Stallman
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2007-08-03 21:47 UTC (permalink / raw)
To: Klaus Straubinger; +Cc: bug-gnu-emacs
> Date: Fri, 3 Aug 2007 14:40:56 +0200 (W. Europe Daylight Time)
> From: Klaus Straubinger <KSNetz@UseNet.ArcorNews.DE>
>
> 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.
It can only change if some future version of Windows implements Unix
sockets. I find this unlikely, to say the least.
> > so I think it's okay for it to cater only for Unix and GNU systems.
>
> Emacs runs on many different operating systems.
They are all either Posix or DOS/Windows.
> > 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.
They are backed up unconditionally without asking any questions (see
server-done), but I must admit I don't fully understand the reasons,
either.
> > 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?
server-edit mentions MH in its doc string.
> >> 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.
Sorry, I don't like making changes I don't understand.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: server.el hardcodes directory /tmp
2007-08-03 12:40 ` Klaus Straubinger
2007-08-03 21:47 ` Eli Zaretskii
@ 2007-08-03 22:02 ` Richard Stallman
1 sibling, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2007-08-03 22:02 UTC (permalink / raw)
To: Klaus Straubinger; +Cc: bug-gnu-emacs
GNU Emacs, as a part of the GNU system, has the principal purpose of
making the GNU system better. (The variant of GNU that is generally
used is GNU/Linux, with Linux as the kernel.)
Although we also support other systems, they must not run away with
the project. And when those other systems are non-free, we should
keep in mind that our goal is to replace them, not enhance them.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-03 22:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 10:56 server.el hardcodes directory /tmp Klaus Straubinger
2007-08-03 12:19 ` Eli Zaretskii
[not found] ` <mailman.4313.1186143557.32220.bug-gnu-emacs@gnu.org>
2007-08-03 12:40 ` Klaus Straubinger
2007-08-03 21:47 ` Eli Zaretskii
2007-08-03 22:02 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.