From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: load-path contains directories or directory names? Date: Mon, 26 Oct 2015 18:29:34 +0200 Message-ID: <83vb9tbnkh.fsf@gnu.org> References: <86lhauus4x.fsf@stephe-leake.org> <87vb9x42io.fsf@web.de> <867fmcey8k.fsf@stephe-leake.org> <83vb9udc86.fsf@gnu.org> <86wpu991zm.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445877038 22618 80.91.229.3 (26 Oct 2015 16:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2015 16:30:38 +0000 (UTC) Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 26 17:30:29 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZqkfC-0003gu-GS for ged-emacs-devel@m.gmane.org; Mon, 26 Oct 2015 17:30:26 +0100 Original-Received: from localhost ([::1]:53977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqkfB-0000XJ-L1 for ged-emacs-devel@m.gmane.org; Mon, 26 Oct 2015 12:30:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqkf4-0000Ww-Qb for emacs-devel@gnu.org; Mon, 26 Oct 2015 12:30:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqkez-00022b-Kl for emacs-devel@gnu.org; Mon, 26 Oct 2015 12:30:18 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:45946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqkez-000228-D5 for emacs-devel@gnu.org; Mon, 26 Oct 2015 12:30:13 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NWU00B005KSWM00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Mon, 26 Oct 2015 18:29:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWU00BFV5SYOTB0@a-mtaout21.012.net.il>; Mon, 26 Oct 2015 18:29:22 +0200 (IST) In-reply-to: <86wpu991zm.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192666 Archived-At: > From: Stephen Leake > Cc: michael_heerdegen@web.de, emacs-devel@gnu.org > Date: Mon, 26 Oct 2015 08:46:21 -0500 > > Eli Zaretskii 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.