From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Problem exporting to PDF (and viewing) Date: Fri, 11 May 2012 21:10:31 -0700 Message-ID: <40C7B1BFC291ED4E9D10436D07736A33470478B315@EXMAIL7.haas.uc.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ST3fZ-0002va-H9 for emacs-orgmode@gnu.org; Sat, 12 May 2012 00:11:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ST3fX-0004zg-OF for emacs-orgmode@gnu.org; Sat, 12 May 2012 00:11:01 -0400 Received: from gateway-a.haas.berkeley.edu ([128.32.222.29]:64023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ST3fX-0004zW-Iz for emacs-orgmode@gnu.org; Sat, 12 May 2012 00:10:59 -0400 Content-Language: en-US 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: "emacs-orgmode@gnu.org" Checking further, this works fine using the default Windows shell in Emacs,= but fails if I use bash as my shell. Unfortunately, I like to use bash, wh= ich I achieve with the following lines in my init.el:=20 (setq shell-file-name "bash") (setenv "SHELL" shell-file-name)=20 (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) >=20 > 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). >=20 > In my init.el I have the lines >=20 > (eval-after-load "org" > '(progn > (if (assoc "\\.pdf\\'" org-file-apps) > (setcdr (assoc "\\.pdf\\'" org-file-apps) > "c:/progra~1/sumatrapdf/sumatrapdf.exe %s") > (add-to-list 'org-file-apps '("\\.pdf\\'" . > "c:/progra~1/sumatrapdf/sumatrapdf.exe %s") t)))) > ) >=20 > This results in: >=20 > org-file-apps is a variable defined in `org.el'. > Its value is ((auto-mode . emacs) > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . "c:/progra~1/sumatrapdf/sumatrapdf.exe %s")) >=20 > When I try to export an org file by typing C-c C-e d, sumatrapdf opens up= OK, > but complains with an error like this: >=20 > Error loading c:\dropbox\org\c\:\dropbox\org\personal.pdf >=20 > 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.