bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TARDIS - Re: 21.x feature request: windows shortcut support


From: Steve Kemp
Subject: Re: TARDIS - Re: 21.x feature request: windows shortcut support
Date: Thu, 11 Oct 2001 11:59:03 +0100 (BST)

On Wed, 10 Oct 2001, Eli Zaretskii wrote:

>
> If I understand correctly, this would mean that every Emacs package
> that deals with files will have to be changed to go through this extra
> layer of resolving shortcuts to get the real file names.  Unless we
> implement this with some kind of file handler for *.lnk files, it is
> IMHO impractical to request Lisp programs to go through
> w32-resolve-shortcut.

  I had just envisaged adding a hook to load-file, to allow
 files that are opened manually to be, transparently - or
 conditionally, resolved.

  I suppose you might want to deal with all other file operations,
 but this could, also, be accomplished via hooks, or advice -

  Perhaps it is a lot of work, but it would be fairly simple
 to implement each case, and would only be necessary on w32
 systems, so even a really tortuous `w32-lnk.el' wouldnt have
 any problems on Unixlike systems.

> And I think Jari didn't mean to support only *.lnk files, so the
> handler solution won't fit the bill, even if the subtle problems with
> supporting such features via file-name handlers are solved, or aren't
> relevant to this specific issue.

  I'm not sure what you mean by this - unless you are suggesting
 handling the, special, Cygwin shortcuts?

  Under Windows only three forms of shortcuts are used:

        1. The .lnk file.
        2. Cygwin shortcuts
        3. NTFS Hard links

  Hard links are either supported by the filesystem, or aren't
 available - either way no problem.
  The Cygwin shortcuts are simply a text file, more or less,
 containing the name of the real target - dealing with them is
 very simple, if you can insert the hooks in the correct places
 for the loading of files, etc.

  Perhaps I'm missing someting?

Steve
---
# See my bookmarks, online...
http://www.mybookmarks.org.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]