emacs-devel
[Top][All Lists]
Advanced

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

Re: lisp/url/url-https.el


From: Stefan Monnier
Subject: Re: lisp/url/url-https.el
Date: 19 Apr 2004 17:05:30 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> So GPG'd files could be called /gpg:/some/file.
>>>> That's the masochistic part.
>>>> Using any other name than the real filename is being masochistic.
>>>> It means you have to implement file-attributes, file-exists-p, ....
>> 
>>> Write a single function that parses the filename.  Then it looks up
>>> the operation in an alist.  If there is a special handler, then call
>>> it, else invoke the "normal" handler on the real filename.
>> 
>> Sure, so you need to list all the possible file operations, joy!

> No, only the ones that aren't forwarded.  And since you have to write
> a function for the handled (not forwareded) ones anyway, listing them
> once again in an alist is not too much trouble, methinks.

It seems to me that for each and every possible file-op, you need to figure
out which is the FILE argument so you can rewrite it, so you need to list
them all somehow.
If you look at jka-compr, you'll see that most file operations aren't ever
mentioned in any way in the code because the file names it uses are valid
real file names.



        Stefan




reply via email to

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