org-table: introduce an upper bound on `org-table-convert-region-max-lines'.
commitb8d790a076918783a9d7e8653fbf32b02cc72210
authorAaron Ecay <aaronecay@gmail.com>
Fri, 12 Dec 2014 04:51:57 +0000 (11 23:51 -0500)
committerAaron Ecay <aaronecay@gmail.com>
Fri, 12 Dec 2014 04:51:57 +0000 (11 23:51 -0500)
treea0e6e971dd2c3f6a71f7b3fa14b1e53a4dc8a426
parent7c86747881c2aafaa1d3cbde3ebf13c596ca6eab
org-table: introduce an upper bound on `org-table-convert-region-max-lines'.

* lisp/org-table.el (org-table-convert-region-max-lines): New
defcustom.
(org-table-convert-region): Use it.

This is useful primarily for babel results.  If a large table-like
object is returned by a code block, this function will become bogged
down in trying to read it, and hang emacs (necessitating a C-g).  This
situation most commonly arises when a :results none header has been
omitted.  With the patch, the user will not experience a hang, but
rather an error message.
lisp/org-table.el