From 5347f4c75a84867b69103928c812b702284fcb06 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 20 Nov 2022 13:15:44 +0800 Subject: [PATCH] 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 Link: https://orgmode.org/list/b7021ff3-60d7-863a-5579-dff60f7e1337@oracle.com --- lisp/ob-core.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 1259909a0..060b0e827 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -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))