0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 19:37:52 +00:00
org-mode/testing/lisp
Kyle Meyer 7bc18ebbed ob-core: Avoid table conversion warning for empty results
* lisp/ob-core.el (org-babel-import-elisp-from-file): Don't try to
convert empty file to a table.
* testing/lisp/test-ob.el (test-ob/import-elisp-from-file): Add tests.

If org-babel-import-elisp-from-file is called with an empty file
(which many ob- libraries do when there are no results), feeding that
to org-table-import leads to a beginning-of-buffer error.  Before
14878f3f9 (ob-core: Display warning on failure to read results,
2020-05-21), this error was hard to notice because, after catching it,
it was reported as a quickly buried message.  After that commit, it is
displayed as a warning, which is not appropriate for the common and
unproblematic case of empty results.

Avoid the warning by only doing the table conversion if the file has
content.  Another option would be to do the table conversion but add a
beginning-of-buffer arm to the surrounding condition-case.  However,
that risks swallowing other sources of that error.

Reported-by: Colin Baxter <m43cap@yandex.com>
<https://orgmode.org/list/878se3nhbj.fsf@yandex.com>
2020-09-01 00:02:49 -04:00
..
test-ob-awk.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-C.el Add test case for symbol coercion in C Babel blocks 2020-05-28 22:32:31 -04:00
test-ob-clojure.el Update copyright year to 2020 2020-01-01 13:38:46 -05:00
test-ob-emacs-lisp.el Update copyright year to 2020 2020-01-01 13:38:46 -05:00
test-ob-eshell.el ob-eshell.el: Add Eshell support for Babel 2018-10-03 18:44:34 +02:00
test-ob-exp.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-fortran.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-header-arg-defaults.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-lilypond.el testing/lisp/test-ob-lilypond.el: Delete test 2020-02-11 10:42:49 +01:00
test-ob-lob.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-lua.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-maxima.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-octave.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-perl.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-plantuml.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-python.el ob-python.el: Fix multiline strings in non-session :results value 2020-06-09 21:01:12 -07:00
test-ob-R.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-ruby.el Ruby tests 2019-05-16 10:43:14 +02:00
test-ob-scheme.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-sed.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-shell.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-sqlite.el Fix typos 2019-11-16 17:17:36 -05:00
test-ob-table.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-tangle.el Merge branch 'maint' 2020-06-08 20:28:03 -04:00
test-ob-vala.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob.el ob-core: Avoid table conversion warning for empty results 2020-09-01 00:02:49 -04:00
test-ol-bbdb.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
test-ol.el ol: Fix some corner cases when normalizing context in links 2020-03-26 22:57:16 +01:00
test-org-agenda.el Revert "Fix test" 2020-01-27 23:43:14 +01:00
test-org-archive.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-attach-git.el Fix problems with org-attach-git, failed tests 2019-09-08 14:43:46 +02:00
test-org-attach.el Make tests robust with respect to mailcap entries 2020-06-03 00:11:46 -04:00
test-org-capture.el Fix capturing plain text with :unnarrowed property and no "%?" marker 2020-05-07 22:35:13 +02:00
test-org-clock.el org-clock: Mention semimonth step in manual and add test 2020-03-26 21:04:00 -04:00
test-org-colview.el colview: Display active time stamps as inactive 2020-05-12 22:44:57 -04:00
test-org-datetree.el org-capture: Add support for month trees 2019-12-09 20:08:28 +01:00
test-org-duration.el org-duration: Read and write duration in compact form 2020-01-04 18:39:05 +01:00
test-org-element.el Merge branch 'maint' 2020-01-11 20:18:47 +01:00
test-org-feed.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-footnote.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-info.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-inlinetask.el Use org-flag-subtree' instead of outline-hide-subtree' 2019-05-11 09:48:53 +02:00
test-org-lint.el lint: Catch misleading drawers within drawers 2020-05-27 14:55:04 +02:00
test-org-list.el list: Fix item insertion when split point is near blanks 2020-08-16 11:42:53 +02:00
test-org-macro.el org-macro: Fix {{{author}}} expansion without AUTHOR keyword 2020-03-11 16:24:26 +01:00
test-org-macs.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-num.el org-num: Add tests 2020-08-28 08:45:41 +02:00
test-org-pcomplete.el pcomplete: improve header arguments completion 2020-05-14 14:52:30 +02:00
test-org-protocol.el org-protocol: Fix URL handling -- add tests 2019-03-10 18:20:58 +01:00
test-org-src.el src: Do not undo edit buffers back to empty state 2020-07-02 19:30:14 +02:00
test-org-table.el table: Allow collapsing header into single line 2020-06-28 23:02:26 +02:00
test-org-tempo.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-timer.el When testing, fake the current time more robustly 2019-02-12 19:34:08 -05:00
test-org.el Merge branch 'maint' into master 2020-08-23 22:39:44 -04:00
test-ox-publish.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ox.el table: Allow collapsing header into single line 2020-06-28 23:02:26 +02:00
test-property-inheritance.el org-test, test-org-element, test-org, test-ox, test-property-inheritance 2019-07-07 19:42:50 +02:00