From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: amicitas Newsgroups: gmane.emacs.help Subject: Re: Following shortcuts when using tab completion with emacs on windows. Date: Sat, 30 Jan 2010 22:31:06 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <3dbf66ef-1b27-41be-89ad-6174005ca8b6@b36g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264920129 14978 80.91.229.12 (31 Jan 2010 06:42:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2010 06:42:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 31 07:42:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NbTUx-0000Yx-Q4 for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jan 2010 07:41:32 +0100 Original-Received: from localhost ([127.0.0.1]:45018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbTUw-00014a-SQ for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jan 2010 01:41:31 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!h9g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 24.152.174.101 Original-X-Trace: posting.google.com 1264919466 2333 127.0.0.1 (31 Jan 2010 06:31:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 31 Jan 2010 06:31:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h9g2000prn.googlegroups.com; posting-host=24.152.174.101; posting-account=JuDB_AoAAABk2mey3NzOZWwD6rN14r2d User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176520 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71590 Archived-At: Thanks for your info on this, it gives me a good place to start. On Jan 30, 8:22=A0am, "Drew Adams" 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 , I > > would be taken to the linked directory and be able to choose a file. > > Basically to mimic symbolic links on POSIX. =A0Any 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 #= 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. Th= at > 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 does= n'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, assumin= g I'm > not the only one who sees it. > > HTH.