[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug Emacs 21.3: write-file downcasing
From: |
Stefan Monnier |
Subject: |
Re: Bug Emacs 21.3: write-file downcasing |
Date: |
Fri, 07 Feb 2003 12:57:34 -0500 |
> > 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
IMHO the problem is that we should not use `string='.
We should have a `file-name-equal' predicate instead.
I'm not sure what its precise semantics should be, but a first step
could be something like
(defun file-name-equal (f1 f2)
(eq t (compare-string f1 0 nil f2 0 nil
(memq system-name '(windows-nt ms-dos)))))
-- Stefan
- Bug Emacs 21.3: write-file downcasing, Dhruva Krishnamurthy, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Juanma Barranquero, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Eli Zaretskii, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Juanma Barranquero, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Eli Zaretskii, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Juanma Barranquero, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing,
Stefan Monnier <=
- Re: Bug Emacs 21.3: write-file downcasing, Eli Zaretskii, 2003/02/07
- Re: Bug Emacs 21.3: write-file downcasing, Richard Stallman, 2003/02/09
- Re: Bug Emacs 21.3: write-file downcasing, Eli Zaretskii, 2003/02/09
- Re: Bug Emacs 21.3: write-file downcasing, Dhruva Krishnamurthy, 2003/02/09
- Re: Bug Emacs 21.3: write-file downcasing, Eli Zaretskii, 2003/02/10
- Re: Bug Emacs 21.3: write-file downcasing, Dhruva Krishnamurthy, 2003/02/10
- Re: Bug Emacs 21.3: write-file downcasing, Jason Rumney, 2003/02/10
- Re: Bug Emacs 21.3: write-file downcasing, Juanma Barranquero, 2003/02/10
- Message not available
- Re: Bug Emacs 21.3: write-file downcasing, Richard Stallman, 2003/02/10
- Re: Bug Emacs 21.3: write-file downcasing, Andreas Schwab, 2003/02/10