From: Richard Stanton <stanton@haas.berkeley.edu>
To: "nicholas.dokos@hp.com" <nicholas.dokos@hp.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
Subject: Re: Problem exporting to PDF (and viewing)
Date: Fri, 18 May 2012 14:45:13 -0700 [thread overview]
Message-ID: <40C7B1BFC291ED4E9D10436D07736A33470478BC46@EXMAIL7.haas.uc.berkeley.edu> (raw)
In-Reply-To: <12464.1337375470@alphaville>
> -----Original Message-----
> From: nicholas.dokos@hp.com [mailto:nicholas.dokos@hp.com]
> Sent: Friday, May 18, 2012 2:11 PM
> To: Richard Stanton
> Cc: emacs-orgmode@gnu.org; Jonathan Leech-Pepin
> Subject: Re: [O] Problem exporting to PDF (and viewing)
>
> Richard Stanton <stanton@haas.berkeley.edu> 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"
next prev parent reply other threads:[~2012-05-18 21:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-12 4:10 Problem exporting to PDF (and viewing) Richard Stanton
2012-05-12 14:23 ` Jonathan Leech-Pepin
2012-05-12 14:39 ` Nick Dokos
2012-05-13 4:05 ` Richard Stanton
2012-05-13 4:53 ` Nick Dokos
2012-05-18 20:56 ` Richard Stanton
2012-05-18 21:11 ` Nick Dokos
2012-05-18 21:45 ` Richard Stanton [this message]
2012-05-18 22:19 ` Nick Dokos
2012-05-18 23:30 ` Richard Stanton
2012-05-19 7:07 ` Achim Gratz
2012-05-13 6:00 ` Achim Gratz
-- strict thread matches above, loose matches on Subject: below --
2012-05-14 5:33 Richard Stanton
2012-05-11 23:52 Richard Stanton
2012-05-12 7:22 ` Jude DaShiell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40C7B1BFC291ED4E9D10436D07736A33470478BC46@EXMAIL7.haas.uc.berkeley.edu \
--to=stanton@haas.berkeley.edu \
--cc=emacs-orgmode@gnu.org \
--cc=jonathan.leechpepin@gmail.com \
--cc=nicholas.dokos@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).