From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17073: 24.3.50; file-symlink-p doesn't return t as described in the doc Date: Mon, 24 Mar 2014 05:52:31 +0200 Message-ID: <83vbv41ce8.fsf@gnu.org> References: <877g7k1zij.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1395633190 7557 80.91.229.3 (24 Mar 2014 03:53:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 03:53:10 +0000 (UTC) Cc: michael_heerdegen@web.de, 17073@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 04:53:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WRvws-0005pt-7s for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 04:53:18 +0100 Original-Received: from localhost ([::1]:34350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRvwr-0005DS-Uz for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 23:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRvwj-0005DK-OF for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 23:53:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRvwc-0007Cq-DN for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 23:53:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRvwc-0007Cm-9S for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 23:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WRvwb-0008H9-OO for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 23:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 03:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17073-submit@debbugs.gnu.org id=B17073.139563316831784 (code B ref 17073); Mon, 24 Mar 2014 03:53:01 +0000 Original-Received: (at 17073) by debbugs.gnu.org; 24 Mar 2014 03:52:48 +0000 Original-Received: from localhost ([127.0.0.1]:46604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRvwN-0008GZ-Kv for submit@debbugs.gnu.org; Sun, 23 Mar 2014 23:52:48 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:39859) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRvwK-0008GO-UX for 17073@debbugs.gnu.org; Sun, 23 Mar 2014 23:52:45 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N2X00B008E1EV00@mtaout28.012.net.il> for 17073@debbugs.gnu.org; Mon, 24 Mar 2014 05:52:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2X008YI9FKUK60@mtaout28.012.net.il>; Mon, 24 Mar 2014 05:52:33 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87281 Archived-At: > From: Juanma Barranquero > Date: Mon, 24 Mar 2014 01:25:36 +0100 > > Perhaps it's me, but I don't find the doc for this function (in the > elisp reference) particularly clear > > -- Function: file-symlink-p filename > If the file FILENAME is a symbolic link, the `file-symlink-p' > function returns the (non-recursive) link target as a string. > > Here it agrees with your interpretation, so at least that is clear. > > (Determining the file name that the link points to from the target > is nontrivial.) First, this function recursively follows symbolic > links at all levels of parent directories. > > IIUC, it's saying (above) that it does not follow symbolic links to > files recursively. But (below) that it does follow recursively > symbolic links to directories, until it finds a file (or a symbolic > link to a file). Is that? The difference is between the file (a.k.a. "basename") part of the file name, and the leading directories part. And yes, it is true.