[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Problem exporting to PDF (and viewing)
From: |
Richard Stanton |
Subject: |
Re: [O] Problem exporting to PDF (and viewing) |
Date: |
Fri, 18 May 2012 14:45:13 -0700 |
> -----Original Message-----
> From: address@hidden [mailto:address@hidden
> Sent: Friday, May 18, 2012 2:11 PM
> To: Richard Stanton
> Cc: address@hidden; Jonathan Leech-Pepin
> Subject: Re: [O] Problem exporting to PDF (and viewing)
>
> Richard Stanton <address@hidden> wrote:
>
> > > > 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)))
> > > `----
> >
> > I did some tracing through, and have found where things go wrong.
> >
> > At the start of the code listed above,
> >
> > cmd = "c:/progra~1/sumatrapdf/sumatrapdf.exe %s"
> > file = "c:/dropbox/org/personal.pdf"
> >
> > (convert-standard-filename file) returns "C:/dropbox/org/personal.pdf"
> >
> > So far so good...
> >
> > However,
> >
> > (shell-quote-argument (convert-standard-filename file)) returns
> > "c\\:dropbox/org/personal.pdf"
> >
>
> Does it really drop the slash in front of "dropbox"? When I do that on my
> system, the : is quoted, but the slash is left alone:
>
>
> (setq s "C:/dropbox/org/personal.pdf")
> "C:/dropbox/org/personal.pdf"
> (shell-quote-argument s)
> "C\\:/dropbox/org/personal.pdf"
> system-type
> gnu/linux
>
> If it does indeed drop the slash, can you try just putting it back and leaving
> the backslashes alone?
Oops. I must have deleted it somehow while transcribing. No, the slash is left
alone:
"c\\:/Dropbox/org/personal.pdf"
- [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/11
- Re: [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/12
- Re: [O] Problem exporting to PDF (and viewing), Jonathan Leech-Pepin, 2012/05/12
- Re: [O] Problem exporting to PDF (and viewing), Nick Dokos, 2012/05/12
- Re: [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/13
- Re: [O] Problem exporting to PDF (and viewing), Nick Dokos, 2012/05/13
- Re: [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/18
- Re: [O] Problem exporting to PDF (and viewing), Nick Dokos, 2012/05/18
- Re: [O] Problem exporting to PDF (and viewing),
Richard Stanton <=
- Re: [O] Problem exporting to PDF (and viewing), Nick Dokos, 2012/05/18
- Re: [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/18
- Re: [O] Problem exporting to PDF (and viewing), Achim Gratz, 2012/05/19
- Re: [O] Problem exporting to PDF (and viewing), Achim Gratz, 2012/05/13
Re: [O] Problem exporting to PDF (and viewing), Richard Stanton, 2012/05/14