[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert-standard-filename

From: Stefan Monnier
Subject: Re: convert-standard-filename
Date: Tue, 09 Aug 2011 14:36:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> (defun file-name-equal (f1 f2)
>> (equal (file-name-canonical f1) (file-name-canonical f2)))

> Another slippery slope, IMO: on some platforms the "canonical" file
> name cannot be computed unless the file exists.  Unless you redefine
> "canonical" to be a derivative of file-name-equal according to the
> above defun, in which case it will probably confuse the heck out of
> programmers who are used to canonicalize_file_name and realpath.

Again, I'm not necessarily advocating this approach.  It does have
some advantages (e.g. if you want to define a map (alist/hash) from file
names to values, where file names need to be compared with
file-name-equal).  But it may indeed prove impossible/impractical
to implement.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]