From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Handling file links under Windows Date: Sat, 15 Jan 2011 22:01:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=50955 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeIs9-0000TC-VQ for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:01:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeIs1-00046s-VL for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:01:34 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:33609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeIs1-00046k-Qp for emacs-orgmode@gnu.org; Sat, 15 Jan 2011 22:01:33 -0500 Received: by fxm12 with SMTP id 12so4429367fxm.0 for ; Sat, 15 Jan 2011 19:01:32 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear All, I would like to have links to PDF files open those files in Acrobat and links to Windows Journal (JNT) files open them in Windows Journal -- very simple; same as it would be as if I double-clicked them anywhere in Windows. Here is what happens now: PDF files open in emacs doc-view mode, and JNT files fail to open with the message "ShellExecute failed: Application not found^M" (sic). If I try to explicitly set the variable org-file-apps, so that its value is (("\\.jnt\\'" . "C:\\Program Files\\Windows Journal\\Journal.exe %s") ("\\.pdf\\'" . "C:\\Program Files (x86)\\Adobe\\Acrobat 10.0\\Acrobat\\Acrobat.exe %s") (auto-mode . emacs) ("\\.x?html?\\'" . default)) -- but in this case, opening those links silently fails (even though I can type e.g. "C:\Program Files\Windows Journal\Journal.exe foo.jnt" from Windows command line and it works fine). Can anyone help with getting this to work right?.. Links are rather fundamental to org-mode and it's annoying not to have them working right. --Leo