From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: lisp/url/url-https.el Date: 19 Apr 2004 17:05:30 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87fzb8cfxq.fsf@lexx.delysid.org> <4nvfk2whna.fsf@lifelogs.com> <87vfk28bl0.fsf-monnier+emacs@gnu.org> <4n1xmpi747.fsf@b2-25-3.bwh.harvard.edu> <4nvfjzazzg.fsf@lifelogs.com> <87smf2sbnq.fsf@emptyhost.emptydomain.de> <87zn98qd15.fsf@emptyhost.emptydomain.de> <87isfv8zhx.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082409979 10089 80.91.224.253 (19 Apr 2004 21:26:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2004 21:26:19 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 19 23:26:09 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFgHJ-0001mX-00 for ; Mon, 19 Apr 2004 23:26:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFgHJ-0002nY-00 for ; Mon, 19 Apr 2004 23:26:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFg5H-0003ey-PI for emacs-devel@quimby.gnus.org; Mon, 19 Apr 2004 17:13:43 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFg55-0003ct-G5 for emacs-devel@gnu.org; Mon, 19 Apr 2004 17:13:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFg4Y-0003Nm-39 for emacs-devel@gnu.org; Mon, 19 Apr 2004 17:13:30 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFfxQ-0000PU-CD for emacs-devel@gnu.org; Mon, 19 Apr 2004 17:05:36 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 87F0821196; Mon, 19 Apr 2004 17:05:30 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 751F68B4C3; Mon, 19 Apr 2004 17:05:30 -0400 (EDT) Original-To: Kai Grossjohann In-Reply-To: <87isfv8zhx.fsf@emptyhost.emptydomain.de> Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.9, requis 5, BAYES_00 -4.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21910 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21910 >>>>> 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