[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug Emacs 21.3: write-file downcasing
From: |
Kim F. Storm |
Subject: |
Re: Bug Emacs 21.3: write-file downcasing |
Date: |
12 Feb 2003 11:26:10 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Jason Rumney <address@hidden> writes:
> Richard Stallman <address@hidden> writes:
>
> > That adds to the weight of the need. Still, I would much rather
> > we could avoid the need to compare file names using anything other
> > than string=.
>
> Even on GNU and similar systems, it is probably better to compare
> inodes than strings to determine if two files are the same file.
> That would deal with case-insensitive filesystems where they exist on
> those platforms.
>
> There are already places in the Emacs code where inodes are used (to
> deal with hard-links), making a function available for lisp to do
> such a comparison and encouraging people to use it rather than string=
> seems like a good thing to me.
So there are really two issues here when comparing two file names A and B:
1) do A and B name the same file (could be in different directories)
2) are A and B the "same" file name, if underlaying FS is case insensitive.
In case 1), comparing inodes (when available) will be the correct solution.
In case 2), just comparing inodes doesn't help.
Furthermore, if the file hasn't been created yet, you cannot use inodes to
compare names A and B...
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Bug Emacs 21.3: write-file downcasing, (continued)
- 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
- Re: Bug Emacs 21.3: write-file downcasing, Richard Stallman, 2003/02/11
- Re: Bug Emacs 21.3: write-file downcasing, Jason Rumney, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing,
Kim F. Storm <=
- Re: Bug Emacs 21.3: write-file downcasing, Jason Rumney, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Kevin Rodgers, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Andreas Schwab, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Kevin Rodgers, 2003/02/14
- Re: Bug Emacs 21.3: write-file downcasing, Benjamin Riefenstahl, 2003/02/11
- Re: Bug Emacs 21.3: write-file downcasing, Jason Rumney, 2003/02/11
- Re: Bug Emacs 21.3: write-file downcasing, Benjamin Riefenstahl, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Andreas Schwab, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Benjamin Riefenstahl, 2003/02/12
- Re: Bug Emacs 21.3: write-file downcasing, Jason Rumney, 2003/02/12