From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Arthur Davis" Newsgroups: gmane.emacs.help Subject: convert windows path to cygwin path in emacs Date: Fri, 28 May 2004 12:07:58 -0400 Organization: Ericsson Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085798866 16426 80.91.224.253 (29 May 2004 02:47:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 02:47:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 29 04:47:42 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTtss-0001st-00 for ; Sat, 29 May 2004 04:47:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTpdh-0002GT-KM for geh-help-gnu-emacs@m.gmane.org; Fri, 28 May 2004 18:15:45 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fi.sn.net!newsfeed2.fi.sn.net!newsfeed3.funet.fi!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed1.telenor.se!uab.ericsson.se!erinews.ericsson.se!news.ericsson.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: pc169187.ena-east.ericsson.se Original-X-Trace: newstree.wise.edt.ericsson.se 1085760345 27739 147.117.169.187 (28 May 2004 16:05:45 GMT) Original-X-Complaints-To: abuse@ericsson.se Original-NNTP-Posting-Date: Fri, 28 May 2004 16:05:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Original-Xref: shelby.stanford.edu gnu.emacs.help:123550 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18849 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18849 I've found that on my windows 2000 machine, I can drag and drop files onto a shortcut to emacsclient (from cygwin) and the file will open in emacs - well sort of... Actually, it gives me a new buffer named the windows pathname. For instance, if I drag c:\path\file.txt onto my shortcut, I get a new buffer named c:\path\file.txt. It would seem like an easy task to add a hook for opening a file that would look for filenames of this form and convert them to /cygdrive/c/path/file.txt. However, I'm not a lisp programmer and don't know where to start. Has anyone done this already? Any pointers? Thanks, Arthur