From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xah lee Newsgroups: gmane.emacs.devel Subject: Re: paths are sensative to double separators Date: Wed, 18 Mar 2009 19:50:37 -0700 Message-ID: References: <20090319015037.GC6695@reforged> Reply-To: xah@xahlee.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd20fd2712cdb04656fdd44 X-Trace: ger.gmane.org 1237431087 4466 80.91.229.12 (19 Mar 2009 02:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 02:51:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mike Mattie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 19 03:52:44 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lk8N8-00017d-3p for ged-emacs-devel@m.gmane.org; Thu, 19 Mar 2009 03:52:42 +0100 Original-Received: from localhost ([127.0.0.1]:36347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lk8Ll-0001rF-Ob for ged-emacs-devel@m.gmane.org; Wed, 18 Mar 2009 22:51:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lk8LG-0001eG-32 for emacs-devel@gnu.org; Wed, 18 Mar 2009 22:50:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lk8LA-0001dV-MZ for emacs-devel@gnu.org; Wed, 18 Mar 2009 22:50:44 -0400 Original-Received: from [199.232.76.173] (port=44082 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lk8LA-0001dS-GV for emacs-devel@gnu.org; Wed, 18 Mar 2009 22:50:40 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.248]:38424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lk8LA-00023G-2b for emacs-devel@gnu.org; Wed, 18 Mar 2009 22:50:40 -0400 Original-Received: by rv-out-0708.google.com with SMTP id f25so377095rvb.6 for ; Wed, 18 Mar 2009 19:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=xhvHe1I1u0fFI0FJ4nHzaebEESxUTXhVZzVz+VdeYMU=; b=rU6sqVTl2Jr8K7rT+EOIV4ODXsyv+EZdgBxHAsQrVVOceeYtaiEDGx3pzsTXIbs4mg uuGXxAVYJuCXS5kr3i7YxcwlFkX5yNBylF0K+nBSqlhdvtoPvAPpPSzrBhXtIXlbU283 m3nBUhTRlkKpmHPL34/taco8NX1S39p3fcqGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=ueNqB8mih00STLs8DA4l8BigLPfnPzKBdT7jZOJ7QNCupchmaEueDU9XJ+Ck/D+ChM Y/hoGgRWK7X2RLtP1F3pP+3V+gd4BpsAjZNr98sAI7V2LblBNBc/j6gFC+UlfgysmMHK 4YgvAcNptHj2Il/jEX9axepPWc1TR8g2jkKKI= Original-Received: by 10.140.200.14 with SMTP id x14mr513766rvf.55.1237431037799; Wed, 18 Mar 2009 19:50:37 -0700 (PDT) In-Reply-To: <20090319015037.GC6695@reforged> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109682 Archived-At: --000e0cd20fd2712cdb04656fdd44 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable in unix-like OSes, double slash is effectively taken to mean root. e.g. /foo/bar//baz.el would mean /baz.el This convention is somewhat rooted in unixes. Xah On Wed, Mar 18, 2009 at 6:50 PM, Mike Mattie wrote: > Hi, > > I have noticed that paths in Emacs are sensitive to double separators e.g= : > > (load /foo/bar/baz.el) ;; works > (load /foo/bar//baz.el) ;; broken > > The same behavior occurs with (find-file). > > This doesn't seem like a good thing. Is there a good reason for > it that I am not aware of ? > > GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, X toolkit) of 2009-03-07 on > localhost > > Cheers, > Mike Mattie > > -- > GnuPG Key: B9012279 is available from HKP server pgp.mit.edu > --=20 Xah =E2=88=91 http://xahlee.org/ --000e0cd20fd2712cdb04656fdd44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable in unix-like OSes, double slash is effectively taken to mean root.

=
e.g. /foo/bar//baz.el would mean /baz.el
This conventi= on is somewhat rooted in unixes.

=C2=A0Xah

On Wed, Mar 18, 2009 at 6:50 PM, Mike Mattie <codermattie@gmail.com> wrot= e:
Hi,

I have noticed that paths in Emacs are sensitive to double separators e.g:<= br>
(load /foo/bar/baz.el) =C2=A0;; works
(load /foo/bar//baz.el) ;; broken

The same behavior occurs with (find-file).

This doesn't seem like a good thing. Is there a good reason for
it that I am not aware of ?

GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, X toolkit) of 2009-03-07 on localho= st

Cheers,
Mike Mattie

--
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu



--
=C2=A0Xah
= =E2=88=91 http://xahlee.org/
--000e0cd20fd2712cdb04656fdd44--