`org-get-heading' is more consistent on empty headlines
commit406ad6eb52f843441f45abd9699bc6f5bc473ab2
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 30 Jul 2016 20:30:19 +0000 (30 22:30 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 30 Jul 2016 20:30:19 +0000 (30 22:30 +0200)
treee38bc97562bc6b49fa8fc7b204f0a169225122bc
parentd2de890d3e6a77b52f554fca6e6f6f6953215921
`org-get-heading' is more consistent on empty headlines

* lisp/org.el (org-get-heading): Ensure that return value is always
  a string.
* testing/lisp/test-org.el (test-org/get-heading): Add tests.

Reported-by: Joe Schafer <joesmoe10@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108559>
lisp/org.el
testing/lisp/test-org.el