Revert "org.el: Allow empty subtrees to be folded back"

* lisp/org.el (org-cycle-internal-local): Revert
ee3c3b5547, which does not appear to
have addressed the original issue and breaks cycling with empty lines.

Reported-by: B Goodr <bgoodr@gmail.com>
Ref: https://orgmode.org/list/CAJj=8EFJXFu9ZQ11cO24AAu=1jykW2Zr+=R4FLuKG=bLjfUe+g@mail.gmail.com
Reported-by: Mikhail Skorzhisnkii <mskorzhinskiy@eml.cc>
Ref: https://orgmode.org/list/87h7qu10ht.fsf@eml.cc
This commit is contained in:
Kyle Meyer 2020-10-26 23:51:27 -04:00
parent 47bf6005b3
commit e8070d71ab

View file

@ -6464,7 +6464,8 @@ Use `\\[org-edit-special]' to edit table.el tables"))
(goto-char eos)
(outline-next-heading)
(when (org-invisible-p) (org-flag-heading nil))))
((and (>= eol eos)
((and (or (>= eol eos)
(not (string-match "\\S-" (buffer-substring eol eos))))
(or has-children
(not (setq children-skipped
org-cycle-skip-children-state-if-no-children))))