From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: Wed, 24 Apr 2002 11:55:13 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200204241755.g3OHtD803358@aztec.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019675336 27535 127.0.0.1 (24 Apr 2002 19:08:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 19:08:56 +0000 (UTC) Cc: himi@m17n.org, emacs-devel@gnu.org, eggert@twinsun.com, knagano@sodan.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170S8O-0007A0-00 for ; Wed, 24 Apr 2002 21:08:56 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 170SAB-0002Yr-00 for ; Wed, 24 Apr 2002 21:10:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170Ria-0002S6-00; Wed, 24 Apr 2002 14:42:16 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170Qz6-0005tj-00; Wed, 24 Apr 2002 13:55:16 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g3OHtDa05271; Wed, 24 Apr 2002 11:55:13 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g3OHtD803358; Wed, 24 Apr 2002 11:55:13 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: eliz@is.elta.co.il In-Reply-To: (message from Eli Zaretskii on Tue, 23 Apr 2002 14:00:49 +0300 (IDT)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3211 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3211 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. I see no reason to think the situation has changed. Our most important platform is GNU, and this optimization is useful on GNU, so we will keep it. There's no need to spend time arguing about that question.