unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* ffap and windows drive letters
@ 2005-06-19 17:10 Scott Otterson
  2005-06-19 20:14 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Otterson @ 2005-06-19 17:10 UTC (permalink / raw)


How can I get ffap to work with paths containing windows drive letters? 
Say I've got this path to an existing file in an emacs buffer

   d:\work\com\auto.cpp

If I put the cursor in the middle of "work" and type M-x ffap, the 
minibuffer will contain

   d:\work

rather than the full path to the file. If I put the cursor in the middle 
of "auto.cpp," the minibuffer will contain

   d:\

It looks to me like the function ffap-guesser in ffap.el needs to be 
fixed but I'm not sharp enough on elisp to do it.

Thanks,

Scott

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ffap and windows drive letters
  2005-06-19 17:10 ffap and windows drive letters Scott Otterson
@ 2005-06-19 20:14 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2005-06-19 20:14 UTC (permalink / raw)


> Date: Sun, 19 Jun 2005 10:10:57 -0700
> From: Scott Otterson <scotto@u.washington.edu>
> 
> How can I get ffap to work with paths containing windows drive letters? 
> Say I've got this path to an existing file in an emacs buffer
> 
>    d:\work\com\auto.cpp
> 
> If I put the cursor in the middle of "work" and type M-x ffap, the 
> minibuffer will contain
> 
>    d:\work
> 
> rather than the full path to the file.

The drive letter is not the problem.  It looks like ffap.el doesn't
support Windows-style file names with backslashes.  Try
d:/work/com/auto.cpp instead, and you will see it will work.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-19 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-19 17:10 ffap and windows drive letters Scott Otterson
2005-06-19 20:14 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).