Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:

> To be honest, that part was a bit cryptic for me. I couldn’t/can’t understand 
> why organizers-export-get-alt-title’  will return something when nothing is 
> set in the org document. Maybe a TODO for the next slot of coding?

This was introduced in

a15a657bfb44f5b4380a8d69fc56bc4271a27f2e
Author:     Nicolas Goaziou <n.goaz...@gmail.com>
AuthorDate: Sun Feb 24 09:15:26 2013 +0100
ox: Better return value for `org-export-get-optional-title'

Judging from the commit, the only reason was saving a few lines of code
in the exporters where the pattern was
(let ((title (or opt-title real-title))) ...)

It is too late to revert that change now.
The best we can do it introducing some kind of flag to not return title
when optional title is not provided.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to