Fix bug in using ̀org-cycle-level' in non-org modes.
commit6144a83c5db861ba89284f844f3975061b9b582b
authorBastien Guerry <bzg@altern.org>
Mon, 9 Apr 2012 18:48:43 +0000 (9 20:48 +0200)
committerBastien Guerry <bzg@altern.org>
Mon, 9 Apr 2012 18:48:43 +0000 (9 20:48 +0200)
treec6a5c32e09eb0db82148b99ebeb259e774c906de
parentbf4d38b1fbf5ac7ddd4e3cbf4e5ae3519dd9d380
Fix bug in using ̀org-cycle-level' in non-org modes.

* org.el (org-point-at-end-of-empty-headline): Only try to
match ̀org-todo-line-regexp' when the value is non-nil, e.g.
in non-org modes.

Thanks to Jambunathan for bringing this up.
lisp/org.el