From: Michael Albinus <michael.albinus@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Windows Emacs doesn't understand UNIX symbolic link?
Date: Wed, 02 Apr 2008 09:50:43 +0200 [thread overview]
Message-ID: <nqzlscd7ak.fsf@alcatel-lucent.de> (raw)
In-Reply-To: <barmar-D39E69.02334402042008@newsgroups.comcast.net> (Barry Margolin's message of "Wed, 02 Apr 2008 02:33:44 -0400")
Barry Margolin <barmar@alum.mit.edu> writes:
> In article <mailman.9824.1207116435.18990.help-gnu-emacs@gnu.org>,
> Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: Yang <fz15@HPC.MsState.Edu>
>> > 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.
next prev parent reply other threads:[~2008-04-02 7:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 4:01 Windows Emacs doesn't understand UNIX symbolic link? Yang
2008-04-01 15:02 ` William Xu
[not found] ` <mailman.9785.1207062149.18990.help-gnu-emacs@gnu.org>
2008-04-01 16:54 ` Yang
2008-04-01 18:57 ` Eli Zaretskii
2008-04-02 2:09 ` William Xu
[not found] ` <mailman.9816.1207102163.18990.help-gnu-emacs@gnu.org>
2008-04-02 5:06 ` Yang
[not found] ` <mailman.9824.1207116435.18990.help-gnu-emacs@gnu.org>
2008-04-02 6:33 ` Barry Margolin
2008-04-02 7:50 ` Michael Albinus [this message]
2008-04-02 17:11 ` Eli Zaretskii
2008-04-03 19:45 ` Michael Albinus
2008-04-02 17:09 ` Eli Zaretskii
2008-04-02 17:27 ` Peter Dyballa
2008-04-02 17:54 ` Eli Zaretskii
2008-04-02 22:12 ` Peter Dyballa
2008-04-03 3:12 ` Eli Zaretskii
2008-04-02 18:15 ` Michael Albinus
[not found] ` <mailman.9884.1207157251.18990.help-gnu-emacs@gnu.org>
2008-04-02 23:28 ` Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nqzlscd7ak.fsf@alcatel-lucent.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).