From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: file-symlink-p for remote files? Date: Wed, 09 Apr 2003 21:57:57 +0200 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8465pnmoje.fsf@lucy.is.informatik.uni-duisburg.de> References: <847ka5qafi.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049918873 25078 80.91.224.249 (9 Apr 2003 20:07:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2003 20:07:53 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 09 22:07:51 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193LrL-0006WH-00 for ; Wed, 09 Apr 2003 22:07:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 193Lvy-0006bB-00 for ; Wed, 09 Apr 2003 22:12:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193Lqd-0001Uo-03 for emacs-devel@quimby.gnus.org; Wed, 09 Apr 2003 16:07:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193LqB-0001Sg-00 for emacs-devel@gnu.org; Wed, 09 Apr 2003 16:06:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193LqA-0001SQ-00 for emacs-devel@gnu.org; Wed, 09 Apr 2003 16:06:38 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193Ljh-0006lK-00 for emacs-devel@gnu.org; Wed, 09 Apr 2003 15:59:58 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 193LjC-0005qr-00 for ; Wed, 09 Apr 2003 21:59:26 +0200 Mail-Followup-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 193LjB-0005qi-00 for ; Wed, 09 Apr 2003 21:59:25 +0200 Original-Lines: 18 Original-X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:YVh8DUuzyAPmLzKpNFbAKpDRC6s= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13087 I've just looked at the new code for file-chase-links. It occurred to me that it tries hard to deal with the problem that file-symlink-p returns a string that might not work as a filename. How about adding another arg to file-symlink-p which specifies whether to return the link target as-is, or whether to return it as a filename? Then file-chase-links wouldn't have to deal with ".." itself; instead it could just tell file-symlink-p to return a filename, and then work with that filename. It would be really easy in the file handlers to return either the original string or a filename. In Ange-FTP returning a filename would amount to calling ange-ftp-replace-name-component, and in Tramp it would amount to calling tramp-make-tramp-file-name. -- A preposition is not a good thing to end a sentence with.