From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem exporting to PDF (and viewing) Date: Sun, 13 May 2012 00:53:15 -0400 Message-ID: <31430.1336884795@alphaville> References: <40C7B1BFC291ED4E9D10436D07736A33470478B315@EXMAIL7.haas.uc.berkeley.edu> <23805.1336833570@alphaville> <40C7B1BFC291ED4E9D10436D07736A33470478B372@EXMAIL7.haas.uc.berkeley.edu> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STQoA-0002BH-5m for emacs-orgmode@gnu.org; Sun, 13 May 2012 00:53:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STQo8-0004Om-Dp for emacs-orgmode@gnu.org; Sun, 13 May 2012 00:53:25 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:37944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STQo8-0004Oh-8L for emacs-orgmode@gnu.org; Sun, 13 May 2012 00:53:24 -0400 In-Reply-To: Message from Richard Stanton of "Sat, 12 May 2012 21:05:24 PDT." <40C7B1BFC291ED4E9D10436D07736A33470478B372@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" , Jonathan Leech-Pepin Richard Stanton wrote: > I think the problem is in the org-mode code that interprets "%s." (and > how this interacts with my bash shell). This is supposed to pass the > executable the fully qualified file name, but somehow it ends up > passing the directory twice, which (understandably) confuses the > executable. > > While this seems to have something to do with the bash shell I'm > using, this works fine for everything else, so I'm pretty sure there's > no fundamental problem in my setup, and it would be nice to find a way > around this problem. > > Two thoughts: > > 1) Is there another string I could use, instead of %s, that results in > the file name being passed without the path at all? This would > probably cure the problem. > Don't know, but I don't think so. > 2) If not, where is the code that interprets %s? I can try stepping > through it and see what I can find. > It happens in org.el:org-open-file, specifically this piece of the code (I think): ,---- | (while (string-match "%s" cmd) | (setq cmd (replace-match | (save-match-data | (shell-quote-argument | (convert-standard-filename file))) | t t cmd))) `---- Nick