emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: `file-relative-name' for compressed files


From: Emilio Lopes
Subject: Re: `file-relative-name' for compressed files
Date: Sun, 27 Jun 2004 20:21:18 +0200
User-agent: Emacs Gnus

Kai Grossjohann writes:

> Richard Stallman <address@hidden> writes:

>> Perhaps making the file-remote-p operation return more
>> information is the way to do it. For instance, it could
>> return the "remote part" of the file name.

> I've now written the solution and will work on checking it
> in. As you suggested, it seems clean.

Kai's fixes solved the problem I was having with
`file-relative-name'. Thanks, Kai.

It just occured to me that a predicate, such as `file-remote-p',
normally returns either `t' or `nil'. Is that right? Maybe one
should introduce a new function (`file-name-remote-part' e.g.),
as Michael Albinus has suggested. This would match better the
other file name component functions (`file-name-directory' and
friends).

I myself would never expect `file-remote-p' to return any
useful information...

 ECL





reply via email to

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