Fix error when exporting body only of an empty buffer
commit9e2dc98eef29fd4022d9793c60f32965ebeb5e94
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 19 Nov 2016 22:06:17 +0000 (19 23:06 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 19 Nov 2016 22:08:12 +0000 (19 23:08 +0100)
tree402a488249e5eb975fcd2f1e57bd3482c1f959a2
parentb3125dc84bf6fd17f803b1270c538b0cfda34350
Fix error when exporting body only of an empty buffer

* lisp/ox.el (org-export-filter-apply-functions): Return empty string
  instead of nil when a filter returns the empty string.

* testing/lisp/test-ox.el (test-org-export/export-scope): Add test.
(test-org-export/filter-apply-functions): New test.

Reported-by: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/110371>
lisp/ox.el
testing/lisp/test-ox.el