From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: [BUG] Formatting of bracketed numbers in included source files Date: Wed, 30 Apr 2014 01:55:29 -0400 Message-ID: <8738gv744u.fsf@kmlap.domain.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfNUX-0002rh-HJ for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 01:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfNUS-0001Ck-V6 for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 01:55:37 -0400 Received: from mail-qg0-f49.google.com ([209.85.192.49]:59567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfNUS-0001Cg-Qv for emacs-orgmode@gnu.org; Wed, 30 Apr 2014 01:55:32 -0400 Received: by mail-qg0-f49.google.com with SMTP id j5so1335640qga.22 for ; Tue, 29 Apr 2014 22:55:32 -0700 (PDT) Received: from localhost ([2601:6:5480:1e5:9e4e:36ff:fe3d:ae9c]) by mx.google.com with ESMTPSA id a9sm29507941qgf.19.2014.04.29.22.55.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Apr 2014 22:55:31 -0700 (PDT) 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 Hello, I'm experiencing issues including a file during export if that file has a single number surrounded by brackets. ,----[ test.org ] | #+include: "test.py" src Python `---- ,----[ test.py ] | x = [1] `---- With the current master (51893a4), trying to export test.org leads to the following error. ,---- | Debugger entered--Lisp error: (error "Format specifier doesn't match argument type") | format("fn:%d-" "nil") | org-export--prepare-file-contents("/tmp/test.py" nil) | org-export-expand-include-keyword() | org-export-as(ascii nil nil nil (:ascii-charset ascii)) | org-export-to-buffer(ascii "*Org ASCII Export*" nil nil nil nil (:ascii-charset ascii) #[nil "\300 \207" [text-mode] 1]) | org-ascii-export-as-ascii(nil nil nil nil (:ascii-charset ascii)) | (lambda (a s v b) (org-ascii-export-as-ascii a s v b (quote (:ascii-charset ascii))))(nil nil nil nil) | org-export-dispatch(nil) | ad-Orig-call-interactively(org-export-dispatch nil nil) | call-interactively(org-export-dispatch nil nil) `---- It seems that `org-export--prepare-file-contents' is treating "[1]" as a footnote. Bisecting this error suggests commit b8781c4c85f0d51cecb32e5192b5049e8f241939 introduced the issue. -- Kyle