emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] 'Args out of range' when exporting with reboxes
@ 2014-04-08  8:45 Thorsten Jolitz
  2014-04-08 17:02 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2014-04-08  8:45 UTC (permalink / raw)
  To: emacs-orgmode


Hi List,

I like to use rebox2 and put boxes in emails and source-file
comment-sections, but when I use outorg on such an message-mode or elisp
buffer and try to export it, I always get 'Args out of range' errors:

 ,,--------------------------------------------------------
 ,| org-element--parse-objects: Args out of range: 315, 316
 ,`--------------------------------------------------------

I have to add commas in front to make export work, but this does not
look that nice anymore in the original buffer.

E.g. evaluating the following block in outorg works only after adding
the commas to the rebox above, and the output does not look that great
either.

#+begin_src emacs-lisp :results value replace
 (org-export-as 'ascii) 
#+end_src

#+results:
			   _________________

				  697

			    Thorsten Jolitz
			   _________________


Table of Contents
_________________

1 --text follows this line--


1 --text follows this line--
============================

  Hi List,

  I like to use rebox2 and put boxes like this in emails or source-file
  comment-sections, but when I use outorg on such an message-mode or
  elisp buffer and try to export it, I always get 'Args out of range'
  errors:

  ,,-------------------------------------------------------- ,|
  org-element--parse-objects: Args out of range: 315, 316
  ,`--------------------------------------------------------

  I have to add commas in front to make export work, but this does not
  look nice anymore in the original buffer.

  E.g. evaluating this block in outorg works only after adding the
  commas to the rebox above, and the output does not look that great
  either.

  ,----
  | (org-export-as 'ascii)
  `----

  -- cheers, Thorsten

-- 
cheers,
Thorsten

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

* Re: [BUG] 'Args out of range' when exporting with reboxes
  2014-04-08  8:45 [BUG] 'Args out of range' when exporting with reboxes Thorsten Jolitz
@ 2014-04-08 17:02 ` Nicolas Goaziou
  2014-04-08 17:22   ` Thorsten Jolitz
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2014-04-08 17:02 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

Hello,

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I like to use rebox2 and put boxes in emails and source-file
> comment-sections, but when I use outorg on such an message-mode or elisp
> buffer and try to export it, I always get 'Args out of range' errors:

The following line

 | org-element--parse-objects: Args out of range: 315, 316

is a table row in Org syntax, so it will not be exported as you expect
it to. However, it shouldn't return an error. I fixed it.

Thank you for your report.


Regards,

-- 
Nicolas Goaziou

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

* Re: [BUG] 'Args out of range' when exporting with reboxes
  2014-04-08 17:02 ` Nicolas Goaziou
@ 2014-04-08 17:22   ` Thorsten Jolitz
  0 siblings, 0 replies; 3+ messages in thread
From: Thorsten Jolitz @ 2014-04-08 17:22 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> I like to use rebox2 and put boxes in emails and source-file
>> comment-sections, but when I use outorg on such an message-mode or elisp
>> buffer and try to export it, I always get 'Args out of range' errors:
>
> The following line
>
>  | org-element--parse-objects: Args out of range: 315, 316
>
> is a table row in Org syntax, so it will not be exported as you expect
> it to. However, it shouldn't return an error. I fixed it.
>
> Thank you for your report.

#+begin_src emacs-lisp
(call-interactively 'org-version)
#+end_src

#+results: 
: Org-mode version 8.2.5h (release_8.2.5h-890-gdfcfca @
/usr/share/emacs/24.3/lisp/org/lisp/)

,----------------------
| lets see what happens
`----------------------

,----------
| several 
| important
| lines 
| here
`----------

#+begin_src emacs-lisp :results value replace
(org-export-as 'ascii)
#+end_src

#+results:
			   _________________

			    Thorsten Jolitz
			   _________________


1 --text follows this line--
============================

  Nicolas Goaziou <n.goaziou@gmail.com> writes:

  > Hello, Thorsten Jolitz <tjolitz@gmail.com> writes: > I like to use
  >rebox2 and put boxes in emails and source-file > comment-sections,
  >but when I use outorg on such an message-mode or elisp > buffer and
  >try to export it, I always get 'Args out of range' errors: The
  >following line | org-element--parse-objects: Args out of range: 315,
  >316 is a table row in Org syntax, so it will not be exported as you
  >expect it to. However, it shouldn't return an error. I fixed it.
  >Thank you for your report.

  ,----
  | (call-interactively 'org-version)
  `----

  ,----------------------
   lets see what happens 
  `----------------------

  ,----------
   several   
   important 
   lines     
   here      
  `----------

  ,----
  | (org-export-as 'ascii)
  `----


 [...]

  -- cheers, Thorsten


Almost perfect. I think the missing "|" of the reboxes in the export
spoil the looks a bit, but at least they signal a difference to the
exported code or example blocks, otherwise everything would look the
same. 

Thanks for fixing. 

-- 
cheers,
Thorsten

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

end of thread, other threads:[~2014-04-08 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-08  8:45 [BUG] 'Args out of range' when exporting with reboxes Thorsten Jolitz
2014-04-08 17:02 ` Nicolas Goaziou
2014-04-08 17:22   ` Thorsten Jolitz

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