From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] [new-exporter] #+includes in non-exported regions do not work Date: Sun, 28 Oct 2012 10:42:26 +0000 Message-ID: <87mwz63mjx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSQKI-0006Jl-FD for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 06:42:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSQKE-0001XX-Qx for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 06:42:42 -0400 Received: from am1ehsobe005.messaging.microsoft.com ([213.199.154.208]:10653 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSQKE-0001Wm-IM for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 06:42:38 -0400 Received: from mail117-am1 (localhost [127.0.0.1]) by mail117-am1-R.bigfish.com (Postfix) with ESMTP id A0D4D4400CC for ; Sun, 28 Oct 2012 10:42:32 +0000 (UTC) Received: from AM1EHSMHS009.bigfish.com (unknown [10.3.201.238]) by mail117-am1.bigfish.com (Postfix) with ESMTP id 3A5F6C005A for ; Sun, 28 Oct 2012 10:42:31 +0000 (UTC) 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, with an up to date org, I cannot get the attached minimal example to export using the new exporter. I have try exporting to latex-pdf, in case that matters. The (line-length truncated) error trace is: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-readable-p(nil) (not (file-readable-p file)) (cond ((not (file-readable-p file)) (error "Cannot include file %s" file)) (let* ((value (match-string 1)) (ind (org-get-indentation)) (file (and (st (progn (beginning-of-line) (let* ((value (match-string 1)) (ind (org-get-i (if (eq (org-element-type (save-match-data (org-element-at-point))) (quote (when (eq (org-element-type (save-match-data (org-element-at-point))) (quo (while (re-search-forward "^[ ]*#\\+INCLUDE: \\(.*\\)" nil t) (whe (let ((case-fold-search t)) (goto-char (point-min)) (while (re-search-forw org-export-expand-include-keyword() [...] --8<---------------cut here---------------end--------------->8--- Note that the uml.org file referred to by the #+include exists. Also note that the old exporter works. I am not entirely sure what the semantics for included files in the new exporter are. For instance, is an include statement /within/ a non-exported headline meant to be processed? Regardless, the fact that it fails to export is a bug, I guess. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.1.1 and Org release_7.9.2-516-g796fca --=-=-= Content-Type: text/orgmode Content-Disposition: attachment; filename="examplebug.org" # -*- org-confirm-babel-evaluate: nil; -*- #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+DATE: 2012-01-09 Mon #+EXPORT_EXCLUDE_TAGS: noexport * introduction This is some text that should be exported * conclusions :noexport: This is some text that will not be exported. It includes some text from another file. The presence of this include causes the new exporter to fail. #+include: uml.org --=-=-=--