Re: (expand-file-name "/..")

Marcus Harnisch <[email protected]>
Newsgroups gmane.emacs.xemacs.beta
Message-ID <[email protected]>
"Stephen J. Turnbull" <[email protected]> writes:

> Doesn't Google like you?  (Just teasing, you have no duty to check.)

Touché! Like I said I don't care enough since we can't realistically
change the behavior anyway. *If* we were going to change anything, I'd
skip all leading "/.." after each expansion. But this whole issue is
not even relevant enough to care, as long as we raise developers'
awareness with an appropriate docstring.

In my use case (traversing directories towards root) for instance the
trivial workaround is an abort condition which checks after every call
to #'e-f-n, whether the returned string is shorter than that of the
previous iteration.

Cheers
Marcus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.