From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero 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 01:25:36 +0100 Message-ID: References: <877g7k1zij.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1395620831 9328 80.91.229.3 (24 Mar 2014 00:27:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 00:27:11 +0000 (UTC) To: 17073@debbugs.gnu.org, Glenn Morris , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 01:27:20 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 1WRsjX-0000ZA-Mi for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 01:27:19 +0100 Original-Received: from localhost ([::1]:33963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRsjX-0007ft-7t for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Mar 2014 20:27:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRsjN-0007fK-DX for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 20:27:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRsjH-0002Yf-2i for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 20:27:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRsjG-0002Yb-VV for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 20:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WRsjG-0000QE-6X for bug-gnu-emacs@gnu.org; Sun, 23 Mar 2014 20:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 00:27:02 +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.13956207811560 (code B ref 17073); Mon, 24 Mar 2014 00:27:02 +0000 Original-Received: (at 17073) by debbugs.gnu.org; 24 Mar 2014 00:26:21 +0000 Original-Received: from localhost ([127.0.0.1]:46438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRsia-0000P4-Sw for submit@debbugs.gnu.org; Sun, 23 Mar 2014 20:26:21 -0400 Original-Received: from mail-yh0-f49.google.com ([209.85.213.49]:54952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WRsiX-0000Ov-Eo for 17073@debbugs.gnu.org; Sun, 23 Mar 2014 20:26:18 -0400 Original-Received: by mail-yh0-f49.google.com with SMTP id z6so4487866yhz.22 for <17073@debbugs.gnu.org>; Sun, 23 Mar 2014 17:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=4i4Cqxs73mKMNEGd7PUn8i/dsT9AF5m/SZREA5rL7bg=; b=GckeNLAbJ5kI7ttR2Bs7MMBLjkPYlgxL8dDJF/Omxc01btOABCd3W+Y4Bs5NKlRRUg YM8DeazL1AwY6nOD0IqnpvOk1gYb3IYIc0eFZh3ZbtD75H+etl4MLqlhrs2fzYduO5R5 IVpk5sJ+MgIP8EC0CtxzgYz5dWlJsNsZ4RslrGejw1ESfQ/ohEMKjl9LraDIfIpcBltT Pf2tB22hmmBYhIKR01Kns2VQ2PRyGgg09xDIqV5VUmWLDaA8wgKbsPqdbFHXuUHgDDQm vDVHWYgv+KYRkGGTWmZIe0Ujn4Xa8LcMArNvD2C1SCYkGFnzuacB7ZlWyTvpOUdFLRlo ftFQ== X-Received: by 10.236.18.227 with SMTP id l63mr27411yhl.101.1395620776563; Sun, 23 Mar 2014 17:26:16 -0700 (PDT) Original-Received: by 10.170.163.3 with HTTP; Sun, 23 Mar 2014 17:25:36 -0700 (PDT) In-Reply-To: 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:87274 Archived-At: 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? J