[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert-standard-filename
From: |
Eli Zaretskii |
Subject: |
Re: convert-standard-filename |
Date: |
Mon, 08 Aug 2011 00:19:34 -0400 |
> From: Lennart Borgman <address@hidden>
> Date: Mon, 8 Aug 2011 05:23:19 +0200
> Cc: address@hidden, address@hidden, address@hidden
>
> On Mon, Aug 8, 2011 at 04:54, Eli Zaretskii <address@hidden> wrote:
> >> From: Lennart Borgman <address@hidden>
> >> Date: Mon, 8 Aug 2011 00:05:05 +0200
> >> Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden
> >>
> >> > The whole point of convert-standard-filename was to provide an
> >> > OS-dependent file name from an OS-independent one (typically from
> >> > a constant filename in a package). So interpreting the input to this
> >> > function in an OS-dependent way is wrong.
> >>
> >> I would rather have it return a file name that fits the OS, regardless
> >> of the file name that it is given.
> >
> > That would be in contradiction with the function's purpose, see above.
>
> Could it make any harm if it worked the way I suggested?
Yes, it contradicts the purpose of the function, and thus makes its
result unpredictable, except by looking at the source.
> Are there any cases were the result would be ambigious?
The case of "c:foobar", as pointed out by Stefan earlier in this
thread. If it's taken as a local absolute file name, then on Windows
there's no need to do anything about it. If it is taken as a Posix
relative file name, the colon should be replaced with some other
character.
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files), (continued)
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files), Stefan Monnier, 2011/08/02
- Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files), Eli Zaretskii, 2011/08/03
- convert-standard-filename (was: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files)), Stefan Monnier, 2011/08/05
- Re: convert-standard-filename (was: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files)), Eli Zaretskii, 2011/08/06
- Re: convert-standard-filename, Stefan Monnier, 2011/08/07
- Re: convert-standard-filename, Lennart Borgman, 2011/08/07
- Re: convert-standard-filename, Stefan Monnier, 2011/08/07
- Re: convert-standard-filename, Lennart Borgman, 2011/08/07
- Re: convert-standard-filename, Eli Zaretskii, 2011/08/07
- Re: convert-standard-filename, Lennart Borgman, 2011/08/07
- Re: convert-standard-filename,
Eli Zaretskii <=
- Re: convert-standard-filename, Lennart Borgman, 2011/08/08
- Re: convert-standard-filename, Eli Zaretskii, 2011/08/08
- Re: convert-standard-filename, Lennart Borgman, 2011/08/08
- Re: convert-standard-filename, Eli Zaretskii, 2011/08/08
- Re: convert-standard-filename, Lennart Borgman, 2011/08/08
- Re: convert-standard-filename, Eli Zaretskii, 2011/08/07
- Re: convert-standard-filename, Lennart Borgman, 2011/08/07
- Re: convert-standard-filename, Stefan Monnier, 2011/08/07
- Re: convert-standard-filename, Eli Zaretskii, 2011/08/07
- Re: convert-standard-filename, Sam Steingold, 2011/08/07