From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Problem exporting to PDF (and viewing) Date: Sat, 12 May 2012 10:23:55 -0400 Message-ID: References: <40C7B1BFC291ED4E9D10436D07736A33470478B315@EXMAIL7.haas.uc.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STDEm-0000Gz-Gj for emacs-orgmode@gnu.org; Sat, 12 May 2012 10:24:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STDEk-0007bb-KP for emacs-orgmode@gnu.org; Sat, 12 May 2012 10:24:00 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:36012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STDEk-0007bR-DO for emacs-orgmode@gnu.org; Sat, 12 May 2012 10:23:58 -0400 Received: by vbbey12 with SMTP id ey12so4618111vbb.0 for ; Sat, 12 May 2012 07:23:56 -0700 (PDT) In-Reply-To: <40C7B1BFC291ED4E9D10436D07736A33470478B315@EXMAIL7.haas.uc.berkeley.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Stanton Cc: "emacs-orgmode@gnu.org" I suspect you should be able to get it to recognize "C:/Program\ Files/sumatrapdf/sumatrapdf.exe". Alternately if the exe is found on your PATH (you may need to add it by hand), you should be able to manage with: (executable-find "sumatrapdf.exe") which should be able to track back the path to the appropriate file. On Sat, May 12, 2012 at 12:10 AM, Richard Stanton wrote: > Checking further, this works fine using the default Windows shell in Emac= s, but fails if I use bash as my shell. Unfortunately, I like to use bash, = which I achieve with the following lines in my init.el: > > =C2=A0 =C2=A0 =C2=A0(setq shell-file-name "bash") > =C2=A0 =C2=A0 =C2=A0(setenv "SHELL" shell-file-name) > =C2=A0 =C2=A0 =C2=A0(setq explicit-shell-file-name shell-file-name) > >> -----Original Message----- >> From: Richard Stanton >> Sent: Friday, May 11, 2012 4:52 PM >> To: emacs-orgmode@gnu.org >> Subject: Problem exporting to PDF (and viewing) >> >> Using Org-mode version 7.8.09 (release_7.8.09-553-g5750f0) (and earlier >> versions) I've encountered a problem on my Windows machine when I try to >> export an Org file to LaTeX, then to Pdf, then viewing (using C-c C-e d)= . >> >> In my init.el I have the lines >> >> =C2=A0 (eval-after-load "org" >> =C2=A0 =C2=A0 '(progn >> =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (assoc "\\.pdf\\'" org-file-apps) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setcdr (assoc "\\.pdf\\'" org-= file-apps) >> "c:/progra~1/sumatrapdf/sumatrapdf.exe =C2=A0%s") >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(add-to-list 'org-file-apps '("\\.pdf\= \'" . >> "c:/progra~1/sumatrapdf/sumatrapdf.exe %s") t)))) >> ) >> >> This results in: >> >> org-file-apps is a variable defined in `org.el'. >> Its value is ((auto-mode . emacs) >> =C2=A0("\\.mm\\'" . default) >> =C2=A0("\\.x?html?\\'" . default) >> =C2=A0("\\.pdf\\'" . "c:/progra~1/sumatrapdf/sumatrapdf.exe %s")) >> >> When I try to export an org file by typing C-c C-e d, sumatrapdf opens u= p OK, >> but complains with an error like this: >> >> Error loading c:\dropbox\org\c\:\dropbox\org\personal.pdf >> >> Any idea why I get the repeated path? A similar constructions works fine= on >> my Mac, so I'm not quite sure what's going wrong here. > >