From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: API for excess DOS file attributes?? Date: Thu, 29 Sep 2011 23:23:48 +0300 Message-ID: <83ehyzdrmz.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1317327871 876 80.91.229.12 (29 Sep 2011 20:24:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2011 20:24:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 29 22:24:27 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9N9e-00035a-PE for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Sep 2011 22:24:26 +0200 Original-Received: from localhost ([::1]:59963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9N9e-0007lP-AN for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Sep 2011 16:24:26 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9N9a-0007l8-8u for help-gnu-emacs@gnu.org; Thu, 29 Sep 2011 16:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9N9Y-000527-UQ for help-gnu-emacs@gnu.org; Thu, 29 Sep 2011 16:24:22 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:57459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9N9Y-00051v-OE for help-gnu-emacs@gnu.org; Thu, 29 Sep 2011 16:24:20 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LSA00I00WG0MR00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 29 Sep 2011 23:23:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.8.215]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSA00IRBWNKGS60@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Thu, 29 Sep 2011 23:23:45 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82373 Archived-At: > From: Oleksandr Gavenko > Date: Thu, 29 Sep 2011 22:59:09 +0300 > > So I think that I can not excess to this data from Emacs > (native Windows build). Not from Lisp, no. > I try rewrite 'follow-cygwin-symlink' from: > > http://www.emacswiki.org/emacs/setup-cygwin.el > > for more strict conformance of definition of symbolic link > in Cygwin (from 'cygwin-ug-net-nochunks.html'): > > The file style symlinks are files containing a magic cookie > followed by the path to which the link points. They are marked > with the System DOS attribute so that only files with that > attribute have to be read to determine whether or not the file is > a symbolic link. What's in setup-cygwin.el is about as good as you can get in Lisp. A better solution would be to add to file-symlink-p and make-symbolic-link the ability to recognize and create Cygwin-style symlink (and Windows 7 style symlink as well), but that requires changes on the C level.