From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Carter Osborn Subject: Bug: Determining file name of included files for ox-publish caching Date: Thu, 18 Jan 2018 10:19:42 -0800 Message-ID: <16EF618A-3AA6-42E0-AECF-B8D3E5144C76@ucsc.edu> Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecEmy-0000BL-Rm for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 13:19:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecEmv-0002bF-Br for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 13:19:48 -0500 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:41616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecEmv-0002aj-0A for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 13:19:45 -0500 Received: by mail-pg0-x229.google.com with SMTP id 136so14392962pgd.8 for ; Thu, 18 Jan 2018 10:19:44 -0800 (PST) Received: from [10.0.1.171] (c-73-241-14-127.hsd1.ca.comcast.net. [73.241.14.127]) by smtp.gmail.com with ESMTPSA id z9sm12212764pgc.5.2018.01.18.10.19.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 10:19:43 -0800 (PST) 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" To: emacs-orgmode@gnu.org 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/=E2=80=9C./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. For now I will work around it by turning off caching, but I do like the caching feature so I hope to be able to use it again someday. Emacs : GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 = Version 10.12.6 (Build 16G29)) of 2017-09-13 Package: Org mode version 9.1.6 (9.1.6-16-g86a382-elpaplus @ = /Users/jcosborn/.emacs.d/elpa/org-plus-contrib-20180115/) Thanks to the mailing list, as always, for being such an excellent resource!=