all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Miles Bader <miles@gnu.org>
Cc: Mike Mattie <codermattie@gmail.com>, emacs-devel@gnu.org
Subject: Re: paths are sensative to double separators
Date: Thu, 19 Mar 2009 11:26:26 +0100	[thread overview]
Message-ID: <87bprx8t83.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: buoljr2gqd6.fsf@dhlpc061.dev.necel.com

Miles Bader <miles@gnu.org> writes:
> Mike Mattie <codermattie@gmail.com> writes:
>> 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 ?
>
> It's a feature, as it makes filename entry more convenient, as you can
> enter absolute filenames without erasing the existing path when entering
> a filename.


Maybe stick with the current behaviuor of the filename prompting
functions (convenience), but instead of greying out the `/home/' part,
remove it from the prompt?



As for the rest, I feel it's sick to stick with behaviours different
from all the rest of OSs and applications around.

While I would have agreed to weeks ago, that this never was an issue, I
now changed my mind completely. It's the first time I collided with this
issue when working on org-protocol.el. There are some odd differences
between find-file versus server-visit-files, find-file versus `ls',
emacs versus posix, emacs versus other applications in general.

Could someone please enlighten me why to stick with this? It's soo
non-standard:



Case 1:

     sh$ ls /home/sebastian//xy.txt
     sh$ gedit /home/sebastian//xy.txt

  versus

     C-x C-f /home//sebastian//xy.txt

  (OK, convenience, agreed, adjust it a little and it's fine.)



Case 2:

     sh$ emacsclient file:///home/sebastian/xy.txt

   versus

     C-x C-f file:///home/sebastian/xy.txt


   What we get in server-visit-files is this:

     `/home/sebastian/file:/home/sebastian/xy.txt'

   Completely odd, isn't it?
   The `/home/sebastian/' part of it is completly weired and just
   guessing.


   Please compare:

     sh$ gedit file:///home/sebastian/xy.txt
     sh$ mozilla file:///home/sebastian/xy.txt
     ... nautilus and _all_ the others but some GNU tools (ls...)

   Clearly an URL is reuested here, and the scheme is "file". But
   URL-schemes are completely ignored when it comes to emacsclient (and
   other GNU tools like `ls').


Resolving URL schemes would solve many problems (think of the scheme "c"
in "c:/autoexec.bat") and make emacs more usable (emacsclient "ftp://...").



Regards,

   Sebastian


--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Http:  www.emma-stil.de




  reply	other threads:[~2009-03-19 10:26 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-19  1:50 paths are sensative to double separators Mike Mattie
2009-03-19  2:50 ` xah lee
2009-03-19  5:42   ` Harald Hanche-Olsen
2009-03-19  6:54     ` Miles Bader
2009-03-19 16:33     ` David De La Harpe Golden
2009-03-19 19:37     ` Richard M Stallman
2009-03-20  0:38     ` xah lee
2009-03-19  9:48   ` Sebastian Rose
2009-03-19 11:16   ` Giorgos Keramidas
2009-03-19 14:20     ` Stephen J. Turnbull
2009-03-19 15:33       ` Giorgos Keramidas
2009-03-20  5:48         ` Stephen J. Turnbull
2009-03-20 12:57           ` Stefan Monnier
2009-03-20 14:55             ` Stephen J. Turnbull
2009-03-20 20:19               ` Stefan Monnier
2009-03-20 21:24                 ` Giorgos Keramidas
2009-03-20 22:56                   ` Sebastian Rose
2009-03-21  0:12                     ` Miles Bader
2009-03-21  4:43                   ` Stephen J. Turnbull
2009-03-21 16:04                     ` Giorgos Keramidas
2009-03-20 15:01             ` Eli Zaretskii
2009-03-20 20:14               ` Stefan Monnier
2009-03-19 15:47     ` Stefan Monnier
2009-03-19 19:08       ` Giorgos Keramidas
2009-03-19 23:59     ` Byung-Hee HWANG
2009-03-19  3:09 ` Miles Bader
2009-03-19 10:26   ` Sebastian Rose [this message]
2009-03-19 15:46     ` Miles Bader
2009-03-19 20:32     ` Stefan Monnier
2009-03-19 21:18       ` Sebastian Rose
2009-03-19 13:33   ` Stefan Monnier
2009-03-19 17:50     ` Mike Mattie
2009-03-19 20:34       ` Stefan Monnier
2009-03-19 21:32         ` Mike Mattie
  -- strict thread matches above, loose matches on Subject: below --
2009-03-19 21:25 Xavier Maillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bprx8t83.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=codermattie@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.