Simplify `org-show-context' configuration
commit4eb4f47141a1ac582330b903bd779dccbcb1c154
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 16 Feb 2015 20:43:35 +0000 (16 21:43 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 22 Feb 2015 13:57:09 +0000 (22 14:57 +0100)
tree9d71927b3c31b6c46da661920e9bafeca208aaa1
parent1ba7d23c52eae07f27cb7453d13ea7fc47c82a77
Simplify `org-show-context' configuration

* lisp/org.el (org-show-context-detail): New variable.
(org-context-choice, org-show-following-heading, org-show-siblings,
org-show-entry-below, org-show-hierarchy-above): Remove variables.
(org-show-set-visibility): New function.
(org-convert-to-oddeven-levels, org-get-location, org-show-context,
org-reveal): Use new function.
(org-link-search): Update docstring.

* lisp/org-agenda.el (org-agenda-cycle-show): Use new function.
(org-agenda-show): Replace missing variable.

* testing/lisp/test-org.el (test-org/show-set-visibility): New test.

* doc/org.texi (Sparse trees):
* doc/orgguide.texi (Sparse trees): Document changes.

* etc/ORG-NEWS: Signal changes.

Configuration of `org-show-context' is done with a single variable
offering six different views, instead of four variables for a total
of 16 configurations.
doc/org.texi
doc/orgguide.texi
etc/ORG-NEWS
lisp/org-agenda.el
lisp/org.el
testing/lisp/test-org.el