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

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

Re: 21.x feature request: windows shortcut support


From: Kai Großjohann
Subject: Re: 21.x feature request: windows shortcut support
Date: Thu, 11 Oct 2001 17:05:40 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.107

address@hidden (Eli Zaretskii) writes:

> On Thu, 11 Oct 2001, Kai =?iso-8859-1?q?Gro=DFjohann?= wrote:
> 
>> It might be possible to write a filename handler which matches all
>> filenames.  Given the string "foo", the handler could look if the file
>> "foo.lnk" exists and then DTRT.  If "foo.lnk" does not exist, it could
>> fall back to the default behavior.
> 
> Apart from the slow-down this would introduce into file-related 
> operations, I'm afraid this could be tricky, because testing whether a 
> file exists is done with another primitive that needs to be aware of 
> shortcuts, and also because you could have a shortcut whose file name is 
> foo.lnk.lnk.lnk.  You could easily infloop because of these problems.

Surely the lnk-handler entry needs to be removed from
file-name-handler-alist before recursively invoking any other
primitive.  

Shouldn't this prevent any infloops?  It also ought to prevent
problems with foo.lnk.lnk.lnk -- since lnk-handler is invoked only
once, only one ".lnk" is dealt with.  Hm.

Oh, I see.  If the user types "foo.lnk", and both files "foo.lnk" and
"foo.lnk.lnk" exist, which of the two files should Emacs look at?
That's indeed a problem.

kai
-- 
Linux provides a nice `poweroff' command, but where is `poweron'?



reply via email to

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