From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: Wed, 24 Apr 2002 14:05:04 +0300 (IDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1019642967 27601 127.0.0.1 (24 Apr 2002 10:09:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 10:09:27 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.org, 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 170JiI-0007B4-00 for ; Wed, 24 Apr 2002 12:09:26 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 170Jjv-00079D-00 for ; Wed, 24 Apr 2002 12:11:07 +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 170Ji9-00045T-00; Wed, 24 Apr 2002 06:09:17 -0400 Original-Received: from is.elta.co.il ([199.203.121.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170Jfc-0003DZ-00 for ; Wed, 24 Apr 2002 06:06:40 -0400 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id OAA08285; Wed, 24 Apr 2002 14:05:05 +0300 (IDT) X-Sender: eliz@is Original-To: MIYASHITA Hisashi In-Reply-To: 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:3166 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3166 On Wed, 24 Apr 2002, MIYASHITA Hisashi wrote: > (1) Generate a proper inode value as well as for the directory > (2) At the startup, set "PWD" env. to the value of getcwd(). > (3) Use always getcwd() when WINDOWSNT(or DOS_NT?) is defined. No, please don't use DOS_NT: it is defined in the MS-DOS port as well, where `stat' does return a unique inode for a directory. > As for (1), generate fake_inode from the value of FileIndex obtained > by GetFileInformationByHandle(). You cannot do that for directories, because GetFileInformationByHandle needs a handle, and Windows doesn't let you open a directory and get a file handle for it. > But on WINDOWSNT, I'd like to apply (3) change too because on W32 > we don't have to (or should not) take such rather profound intentions > into considerations. I disagree. I think it's very important that the Windows port tries to return more-or-less meaningful inode numbers, so that we don't have to devise a special kludge for each Emacs primitive that needs an inode.