[Top][All Lists]

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

Re: init_buffer PWD fix

From: Eli Zaretskii
Subject: Re: init_buffer PWD fix
Date: Tue, 23 Apr 2002 14:00:49 +0300 (IDT)

On Tue, 23 Apr 2002, MIYASHITA Hisashi wrote:

> But, in the first place, is this code necessary on all platform?
> Even now, is it really efficient on almost all of the platforms?
> I don't think we should stick to such hacked code for the simple
> job to get the current directory.

I think Emacs does that because the system call invoked by `getcwd' is 
much slower on Unix than an access to the environment variables followed 
by a call to `stat'.  If that is no longer true, we could as well remove 
the `getenv' part and call `getcwd' directly.

However, the case of calling `stat' on directories should be fixed in the 
Windows port anyhow, IMHO, even if it is irrelevant to the issue of PWD.

reply via email to

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