From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Joseph Carter Osborn <jcosborn@ucsc.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Determining file name of included files for ox-publish caching
Date: Thu, 18 Jan 2018 23:44:49 +0100 [thread overview]
Message-ID: <87efmmrdlq.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <16EF618A-3AA6-42E0-AECF-B8D3E5144C76@ucsc.edu> (Joseph Carter Osborn's message of "Thu, 18 Jan 2018 10:19:42 -0800")
Hello,
Joseph Carter Osborn <jcosborn@ucsc.edu> writes:
> I have an org-mode document that imports sections from other org-mode
> documents, like so:
>
> #+BEGIN_QUOTE
>
> * Part 1
> #+INCLUDE: "./other.org::*Heading"
> # and so on
>
> #+END_QUOTE
>
>
> I set up publishing for this document and encounter errors like this in
> my *messages* buffer:
>
> #+BEGIN_QUOTE
> org-publish-cache-ctime-of-src: No such file: "/Users/jcosborn/path/to/project/./other.org"
> #+END_QUOTE
>
>
> If I leave off the "::*..." component of the include I have no such
> errors. I believe the culprit is the capture in the regular expression
> on ox-publish.el:1173, but I'm not sure why the bug exhibits in this
> particular way with the stray quote being thrown into the string.
> It seems like the regular expression should treat included org files
> specially and split the string to avoid treating searches as part of the
> file.
>
> A minimal example has two org files "including.org" and "included.org",
> where "included.org" has a heading "* Hello" and "including.org" just
> has '#+INCLUDE: "./included.org::*Hello"'.
>
> Then set up a trivial project like:
>
> #+BEGIN_SRC elisp
> (setq org-publish-project-alist
> '(("test"
> :base-directory "~/test/"
> :publishing-directory "~/test/"
> :publishing-function org-latex-publish-to-latex)))
> #+END_SRC
>
>
> and try to publish it, or run:
>
> #+BEGIN_SRC elisp
> (org-publish-cache-file-needs-publishing "including.org")
> #+END_SRC
>
> And you, too, should encounter the same error.
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2018-01-18 22:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 18:19 Bug: Determining file name of included files for ox-publish caching Joseph Carter Osborn
2018-01-18 22:44 ` Nicolas Goaziou [this message]
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=87efmmrdlq.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=jcosborn@ucsc.edu \
/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).