emacs-devel
[Top][All Lists]
Advanced

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

Re: load-path contains directories or directory names?


From: Eli Zaretskii
Subject: Re: load-path contains directories or directory names?
Date: Mon, 26 Oct 2015 18:29:34 +0200

> From: Stephen Leake <address@hidden>
> Cc: address@hidden,  address@hidden
> Date: Mon, 26 Oct 2015 08:46:21 -0500
> 
> Eli Zaretskii <address@hidden> writes:
> 
> > In addition, on MS-Windows 'expand-file-name' converts all backslashes
> > to forward slashes, thus producing nicer and more "standard" results.
> 
> This raises this issue of whether elements in `load-path' can have
> backslashes (or other syntax on VMS? not that we support VMS anymore,
> but I'm feeling nostalgic :).

I didn't write that wrt load-path (or other similar lists), I wrote
that wrt constructing file names by combining a directory name with a
file's basename.

> I always assume `load-path' has canonical Emacs file name format, but
> the doc string doesn't say that, and on Windows it would seem "natural"
> to add directory file names with backslashes.

We can add that requirement to the doc string of load-path (and its
ilk), if we think it's important.  Although using expand-file-name
will work even with backslashes, of course.



reply via email to

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