From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: file-symlink-p for remote files? Date: Tue, 08 Apr 2003 21:58:57 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <847ka5qafi.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1049853774 30049 80.91.224.249 (9 Apr 2003 02:02:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2003 02:02:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 09 04:02:52 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 1934vM-0007oN-00 for ; Wed, 09 Apr 2003 04:02:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1934zd-0004gX-00 for ; Wed, 09 Apr 2003 04:07:17 +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 1934tB-00081S-07 for emacs-devel@quimby.gnus.org; Tue, 08 Apr 2003 22:00:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1934sK-0007Mu-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 21:59:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1934rm-0006H8-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 21:59:10 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1934ra-00062x-00 for emacs-devel@gnu.org; Tue, 08 Apr 2003 21:58:58 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 1934rZ-000537-00; Tue, 08 Apr 2003 21:58:57 -0400 Original-To: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-reply-to: <847ka5qafi.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@gmx.net) 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:13055 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13055 file-symlink-p should return the exact link target. (When the target is relative, file-symlink-p returns the relative name.) I corrected the doc string. Because it is useful to be able to find the file name that the link points to, I just gave file-chase-links an optional argument to specify the maximum number of links to chase. Meanwhile, I think it is necessary to modify file-chase-links and file-truename to do something special for remote symbolic links. Could you do that?