Make `org-comment-dwim' check if on a heading
commitee7ead62aa6b35675e663ecac4d9275409c9f6c7
authorAlex Branham <branham@utexas.edu>
Wed, 29 Nov 2017 13:41:12 +0000 (29 14:41 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 29 Nov 2017 13:41:12 +0000 (29 14:41 +0100)
treefc9b7d3f0c4cb7132ff91b0d5cf46e2985b593c5
parentacfb1ca4b894ac0f800b409f821686f4a75bceb4
Make `org-comment-dwim' check if on a heading

* lisp/org.el (org-comment-dwim): If on a heading, comment the
  heading.

* testing/lisp/test-org.el: Add test.

TINYCHANGE
lisp/org.el
testing/lisp/test-org.el