Guard against empty headings when sorting
commit1af7f303d5351c2fb9e3fea94438a399a88ea9a7
authorSebastian Reuße <seb@wirrsal.net>
Tue, 13 Mar 2018 16:51:45 +0000 (13 17:51 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 20 Mar 2018 08:25:14 +0000 (20 09:25 +0100)
treec0856f8feac7d1f2e56332655d9b19633881a657
parent681f870b25a2005f76c99a929a0f5c9b3b481a6b
Guard against empty headings when sorting

* org.el (org-sort-entries): Guard against empty headings when sorting
alphabetically, numerically.

Due to how ‘org-complex-heading-regexp’ is defined, the title capture group
currently returns nil in empty headings, which we don’t want to pass on to
‘org-sort-remove-invisible’.
lisp/org.el