From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Myles English" Subject: Re: [bug] [new-exporter] #+includes in non-exported regions do not work Date: Sun, 28 Oct 2012 11:29:26 +0000 Message-ID: <871ugi6dih.fsf@ed.ac.uk> References: <87mwz63mjx.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSQvs-0006of-8K for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 07:21:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSQvr-0003r1-Ac for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 07:21:32 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:61618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSQvr-0003qx-4J for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 07:21:31 -0400 Received: by mail-wg0-f41.google.com with SMTP id ds1so926857wgb.0 for ; Sun, 28 Oct 2012 04:21:30 -0700 (PDT) In-reply-to: <87mwz63mjx.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org Hi Eric, You have: #+include: uml.org I think it should be: #+include: "uml.org" I have haven't tried it though. Myles Eric S Fraga writes: > 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