From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Bug Emacs 21.3: write-file downcasing Date: Fri, 07 Feb 2003 18:33:55 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030207182150.377E.LEKTU@terra.es> References: <20030207163850.3779.LEKTU@terra.es> <2110-Fri07Feb2003191658+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044639770 12143 80.91.224.249 (7 Feb 2003 17:42:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 17:42:50 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hCWT-00039A-00 for ; Fri, 07 Feb 2003 18:42:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18hCg7-0006y0-00 for ; Fri, 07 Feb 2003 18:52:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hCXu-0000yy-05 for emacs-devel@quimby.gnus.org; Fri, 07 Feb 2003 12:44:14 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18hCRU-0007nc-00 for emacs-devel@gnu.org; Fri, 07 Feb 2003 12:37:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18hCON-0006Sr-00 for emacs-devel@gnu.org; Fri, 07 Feb 2003 12:34:29 -0500 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hCOD-0005ut-00; Fri, 07 Feb 2003 12:34:14 -0500 Original-Received: from [62.22.27.143] (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id h17HXtm29505; Fri, 7 Feb 2003 18:33:55 +0100 Original-To: Eli Zaretskii In-Reply-To: <2110-Fri07Feb2003191658+0200-eliz@is.elta.co.il> X-Mailer: Becky! ver. 2.05.06 Original-cc: seagull@fastmail.fm Original-cc: emacs-pretest-bug@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11479 On Fri, 07 Feb 2003 19:16:58 +0200, "Eli Zaretskii" wrote: > What am I missing? Nothing, except that we aren't downcasing the filename, we are normalizing it :) What I mean is that: (with-current-buffer (get-buffer-create "*temp*") (let ((name (file-truename "/file1"))) (insert "data\n") (write-file name) (string= name (file-truename (buffer-file-name))))) => nil which is weird and potentially a bug: the truename of a file is different before it exists and afterwards. If you save it before writing the file, you cannot trust it. OTOH, I think my e-mail exchange with Jason makes very explicit that I *don't* know what's the "intuitive, most logical" behaviour in these corner cases... /L/e/k/t/u