From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Windows Emacs doesn't understand UNIX symbolic link? Date: Wed, 02 Apr 2008 09:50:43 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207122622 1033 80.91.229.12 (2 Apr 2008 07:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 07:50:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 09:50:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jgxk7-0004du-84 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 09:50:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgxjV-0004oF-3p for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 03:50:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jgxj7-0004nB-Fo for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 03:49:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jgxj6-0004ma-H2 for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 03:49:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgxj6-0004mO-5m for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 03:49:44 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jgxj5-0005LL-Ed for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 03:49:43 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m327nXhA006720; Wed, 2 Apr 2008 09:49:33 +0200 In-Reply-To: (Barry Margolin's message of "Wed, 02 Apr 2008 02:33:44 -0400") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52962 Archived-At: Barry Margolin writes: > In article , > Eli Zaretskii wrote: > >> > From: Yang >> > Date: Tue, 1 Apr 2008 11:54:35 -0500 >> > >> > Is there any patch around to let the windows emacs understand UNIX >> > symbolic links? >> >> Not that I know of, and neither can I imagine how an Emacs patch could >> cure a malady of the operating system: for symlinks to work on >> Windows, the Windows filesystem needs to do something sensible with >> symlinks, because even if the symlink is on a Unix disk, Emacs >> accesses it through Windows file I/O APIs, and those simply don't >> support symlinks. > > Did you forget that he said he's using TRAMP, not the Windows filesystem > API? The problem is not Tramp in this case. If I try to create a symbolic link in a remote directory, I get the error (void-function make-symbolic-link) And indeed, this function does not exist for W32 systems; see the check in fileio.c: #ifdef S_IFLNK DEFUN ("make-symbolic-link", Fmake_symbolic_link, Smake_symbolic_link, 2, 3, ... Eli: do you see a chance to enable that function for W32 systems? It should first check for a file name handler (as it does now), and _then_ check whether the native functionality can be used. A rude workaround would be (defalias 'make-symbolic-link 'tramp-handle-make-symbolic-link) But it is dangerous; because it fails on non-remote directories. Best regards, Michael.