all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: amicitas <amicitas@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Following shortcuts when using tab completion with emacs on  windows.
Date: Sat, 30 Jan 2010 22:31:06 -0800 (PST)	[thread overview]
Message-ID: <e28c37a2-ae00-47ae-b7d0-1d90cf768b77@h9g2000prn.googlegroups.com> (raw)
In-Reply-To: mailman.472.1264868608.14305.help-gnu-emacs@gnu.org

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.



  parent reply	other threads:[~2010-01-31  6:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2010-01-31 19:50     ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e28c37a2-ae00-47ae-b7d0-1d90cf768b77@h9g2000prn.googlegroups.com \
    --to=amicitas@gmail.com \
    --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.
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.