emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Formatting of bracketed numbers in included source files
@ 2014-04-30  5:55 Kyle Meyer
  2014-04-30  7:34 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2014-04-30  5:55 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Formatting of bracketed numbers in included source files
  2014-04-30  5:55 [BUG] Formatting of bracketed numbers in included source files Kyle Meyer
@ 2014-04-30  7:34 ` Nicolas Goaziou
  2014-04-30 15:00   ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2014-04-30  7:34 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Hello,

Kyle Meyer <kyle@kyleam.com> writes:

> I'm experiencing issues including a file during export if that file has
> a single number surrounded by brackets.

[...]

> It seems that `org-export--prepare-file-contents' is treating "[1]" as a
> footnote. Bisecting this error suggests commit
> b8781c4c85f0d51cecb32e5192b5049e8f241939 introduced the issue.

Indeed. This should be fixed. Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] Formatting of bracketed numbers in included source files
  2014-04-30  7:34 ` Nicolas Goaziou
@ 2014-04-30 15:00   ` Kyle Meyer
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2014-04-30 15:00 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> wrote:
[...]
> Indeed. This should be fixed. Thank you for reporting it.

Yes, the fix works well on my end. Thank you.

--
Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-30 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30  5:55 [BUG] Formatting of bracketed numbers in included source files Kyle Meyer
2014-04-30  7:34 ` Nicolas Goaziou
2014-04-30 15:00   ` Kyle Meyer

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).