all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: michael@cadilhac.name (Michaël Cadilhac)
Subject: File name handlers and local files.
Date: Tue, 28 Nov 2006 14:13:42 +0100	[thread overview]
Message-ID: <87vekzn27t.fsf_-_@lrde.org> (raw)
In-Reply-To: <m3slg4q76g.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Tue\, 28 Nov 2006 09\:58\:15 +0100")


[-- Attachment #1.1: Type: text/plain, Size: 1421 bytes --]

storm@cua.dk (Kim F. Storm) writes:

>> BTW, something tickles me about all that: why functions like
>> file-exists-p & co doesn't check if the file is not an actual
>> stat(2)-able file before getting any fanciness with file name
>> handlers ?
>
> Yes, I've been hit by this many times while working on ido.

It's probably worth the ask in another thread.

Let's suppose my sysadmin is a weird guy. Very weird. And he decided
that a common NFS data directory will be created on the / with the
name 'data:', because he had a difficult childhood and loves The
Windows Way.

When I try to edit a file in that directory, I use : C-x C-f /data:/test

Oh, weirder! Even if a `data:' directory exists, it just tries to use
tramp !

Okey, this is a hard case, because the `test' file doesn't exist, and
it may exist on the distant host `data'.

But simpler: let's just try (file-exists-p "/data:"). The file name
handler having the precedence on local files, it tries to ssh to
`data:'. Isn't that a pity?

-- 
/!\ My mail address has changed, please update your files accordingly.
 |      Michaël `Micha' Cadilhac   |  «Tu aimeras ton prochain.»            |
 |         Epita/LRDE Promo 2007   |    D'abord, Dieu ou pas,               |
 |  http://michael.cadilhac.name   |       j'ai horreur qu'on me tutoie.    |
 `--  -   JID: micha@amessage.be --'           -- P. Desproges         -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2006-11-28 13:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-26 20:00 Ido and hosts named with a single letter Michaël Cadilhac
2006-11-27  9:43 ` Kim F. Storm
2006-11-27 17:04   ` Michaël Cadilhac
2006-11-28  8:58     ` Kim F. Storm
2006-11-28 13:13       ` Michaël Cadilhac [this message]
2006-11-28 14:50         ` File name handlers and local files Michael Albinus
2006-11-28 15:13           ` Michaël Cadilhac
2006-11-28 14:54         ` Andreas Schwab
2006-11-30 20:52     ` Ido and hosts named with a single letter Kim F. Storm

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=87vekzn27t.fsf_-_@lrde.org \
    --to=michael@cadilhac.name \
    /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.