ob-core: Do not limit table size in babel output

* lisp/ob-core.el (org-babel-import-elisp-from-file): Do not limit the
maximum possible resulting table to
`org-table-convert-region-max-lines'.

Reported-by: Daniel Ortmann <daniel.ortmann@oracle.com>
Link: https://orgmode.org/list/b7021ff3-60d7-863a-5579-dff60f7e1337@oracle.com
This commit is contained in:
Ihor Radchenko 2022-11-20 13:15:44 +08:00
parent 4c40fc3d4d
commit 5347f4c75a
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 1 deletions

View File

@ -3208,7 +3208,9 @@ If the table is trivial, then return it as a scalar."
;; If the file was empty, don't bother trying to
;; convert the table.
(when (> pmax 1)
(org-table-convert-region (point-min) pmax separator)
;; Convert tables of arbitrary size.
(let ((org-table-convert-region-max-lines most-positive-fixnum))
(org-table-convert-region (point-min) pmax separator))
(delq nil
(mapcar (lambda (row)
(and (not (eq row 'hline))