From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Tramp: how to handle make-symbolic-link? Date: Sun, 23 Jun 2002 16:00:05 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200206232000.g5NK05M31328@rum.cs.yale.edu> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024862584 4631 127.0.0.1 (23 Jun 2002 20:03:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Jun 2002 20:03:04 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17MDZg-0001Ca-00 for ; Sun, 23 Jun 2002 22:03:04 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17MDaU-0004mD-00 for ; Sun, 23 Jun 2002 22:03:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MDZl-0005xr-00; Sun, 23 Jun 2002 16:03:09 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17MDWs-0005uM-00 for ; Sun, 23 Jun 2002 16:00:10 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g5NK05M31328; Sun, 23 Jun 2002 16:00:05 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5130 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5130 > What should be the LINKNAME argument of make-symbolic-link when > invoking Tramp? For non-absolute link targets, the following appears > natural: > > (make-symbolic-link "/user@host:/name/of/file" "linkname") > > So the LINKNAME argument does not look like a Tramp filename. But > what if the target of the symbolic link is an absolute filename? > Which of the two kinds of calls do we expect? > > (make-symbolic-link "/user@host:/name/of/file" "/user@host:/path/to/target") > (make-symbolic-link "/user@host:/name/of/file" "/path/to/target") In my mind, symbolic links are just special kinds of files and their "target" is just an arbitrary string which happens to be interpreted by the file-system code (but can also be used for other things, see for example the .# locking used by Emacs). So I think Emacs (and thus Tramp) should handle the target as a string, not as a filename. Stefan