* Following shortcuts when using tab completion with emacs on windows.
@ 2010-01-30 8:37 amicitas
2010-01-30 16:22 ` Drew Adams
[not found] ` <mailman.472.1264868608.14305.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: amicitas @ 2010-01-30 8:37 UTC (permalink / raw
To: help-gnu-emacs
I would like to find a way to follow windows shortcuts (*.lnk) files
when using tab completion.
The package "w32-symlinks" allows emacs to follow windows shortcuts.
Does any one know how to tie this into the tab completion so that
links will be followed?
The exact behavior that I would like is that when I type C-x C-f to
open a file, then type in the name of a shortcut and press <TAB>, I
would be taken to the linked directory and be able to choose a file.
Basically to mimic symbolic links on POSIX. Any link files that I do
encounter will have been created by cygwin.
I am using a windows installation of emacs 23.1.
Thanks in advance for any help,
Novimir Pablant
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Following shortcuts when using tab completion with emacs on windows.
2010-01-30 8:37 Following shortcuts when using tab completion with emacs on windows amicitas
@ 2010-01-30 16:22 ` Drew Adams
[not found] ` <mailman.472.1264868608.14305.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2010-01-30 16:22 UTC (permalink / raw
To: 'amicitas', help-gnu-emacs
> I would like to find a way to follow windows shortcuts (*.lnk) files
> when using tab completion.
>
> The package "w32-symlinks" allows emacs to follow windows shortcuts.
> Does any one know how to tie this into the tab completion so that
> links will be followed?
>
> The exact behavior that I would like is that when I type C-x C-f to
> open a file, then type in the name of a shortcut and press <TAB>, I
> would be taken to the linked directory and be able to choose a file.
> Basically to mimic symbolic links on POSIX. Any link files that I do
> encounter will have been created by cygwin.
>
> I am using a windows installation of emacs 23.1.
In Emacs 22, if you customize (not just setq) option
`w32-symlinks-handle-shortcuts' to `t', then it should do what you want. It
works for me, at least.
In Emacs 23.1, it seems to raise an error, "wrong-type-argument stringp #<buffer
the-shortcut.lnk>".
The problem is that the file-name handler kicks in for
`verify-visited-file-modtime', whose arg is a buffer, not a file name. That
leads to `w32-symlinks-parse-shortcut' being called on the buffer, which calls
`insert-file-contents' on the buffer (and it expects a file name).
I tried with the version of w32-symlinks.el here:
http://www.emacswiki.org/emacs/w32-symlinks.el
Perhaps the author, Francis J. Wright has a more recent version that doesn't
have this problem. (But the latest version I find on his Web site is the same as
the Emacs-Wiki version.) You might ask either Francis or Lars Hansen (who has
made the latest updates to the library) to look into the problem, assuming I'm
not the only one who sees it.
HTH.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Following shortcuts when using tab completion with emacs on windows.
[not found] ` <mailman.472.1264868608.14305.help-gnu-emacs@gnu.org>
@ 2010-01-31 6:31 ` amicitas
2010-01-31 19:50 ` Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: amicitas @ 2010-01-31 6:31 UTC (permalink / raw
To: help-gnu-emacs
Thanks for your info on this, it gives me a good place to start.
On Jan 30, 8:22 am, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > I would like to find a way to follow windows shortcuts (*.lnk) files
> > when using tab completion.
>
> > The package "w32-symlinks" allows emacs to follow windows shortcuts.
> > Does any one know how to tie this into the tab completion so that
> > links will be followed?
>
> > The exact behavior that I would like is that when I type C-x C-f to
> > open a file, then type in the name of a shortcut and press <TAB>, I
> > would be taken to the linked directory and be able to choose a file.
> > Basically to mimic symbolic links on POSIX. Any link files that I do
> > encounter will have been created by cygwin.
>
> > I am using a windows installation of emacs 23.1.
>
> In Emacs 22, if you customize (not just setq) option
> `w32-symlinks-handle-shortcuts' to `t', then it should do what you want. It
> works for me, at least.
>
> In Emacs 23.1, it seems to raise an error, "wrong-type-argument stringp #<buffer
> the-shortcut.lnk>".
>
> The problem is that the file-name handler kicks in for
> `verify-visited-file-modtime', whose arg is a buffer, not a file name. That
> leads to `w32-symlinks-parse-shortcut' being called on the buffer, which calls
> `insert-file-contents' on the buffer (and it expects a file name).
>
> I tried with the version of w32-symlinks.el here:http://www.emacswiki.org/emacs/w32-symlinks.el
>
> Perhaps the author, Francis J. Wright has a more recent version that doesn't
> have this problem. (But the latest version I find on his Web site is the same as
> the Emacs-Wiki version.) You might ask either Francis or Lars Hansen (who has
> made the latest updates to the library) to look into the problem, assuming I'm
> not the only one who sees it.
>
> HTH.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Following shortcuts when using tab completion with emacs on windows.
2010-01-31 6:31 ` amicitas
@ 2010-01-31 19:50 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2010-01-31 19:50 UTC (permalink / raw
To: 'amicitas', help-gnu-emacs
> Thanks for your info on this, it gives me a good place to start.
FYI - I just heard back from Lars Hansen that he is no longer working on
`w32-symlinks.el' (or on Emacs development in general).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-31 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 8:37 Following shortcuts when using tab completion with emacs on windows amicitas
2010-01-30 16:22 ` Drew Adams
[not found] ` <mailman.472.1264868608.14305.help-gnu-emacs@gnu.org>
2010-01-31 6:31 ` amicitas
2010-01-31 19:50 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.