org-format-outline-path: Ignore nil path elements
commit59d706219bf0434cceacda18e3d291c241648199
authorKyle Meyer <kyle@kyleam.com>
Sat, 31 Oct 2015 16:36:16 +0000 (31 12:36 -0400)
committerKyle Meyer <kyle@kyleam.com>
Sat, 31 Oct 2015 16:47:17 +0000 (31 12:47 -0400)
tree3a0cb64d801253aa14b69db97c7b04a47d73cede
parent1ec47568f4a9032edf6b48caa32d2f4df4c70790
org-format-outline-path: Ignore nil path elements

* lisp/org.el (org-format-outline-path): Ignore nil path elements.
* testing/lisp/test-org.el (test-org/format-outline-path): Add test.

The PATH argument shouldn't contain a nil item.  However, this didn't
fail before 1c74002, and helm-get-org-candidates-in-file relies on this
behavior, so prevent it from failing now.

Reported-by: Simon Thum <simon.thum@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102411>
lisp/org.el
testing/lisp/test-org.el