Allow a custom headline prefix in orgstruct-mode.
commita3f6570fffcfc1b1880b646cfabdf2a6f8187956
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Feb 2013 17:46:57 +0000 (10 18:46 +0100)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Feb 2013 17:47:58 +0000 (10 18:47 +0100)
tree0eb35f4f60284b24a32776c9599a30c8f7c6c3df
parentba38de197eb0662d503d6e237c6812cb20dc269f
Allow a custom headline prefix in orgstruct-mode.

* lisp/org.el (org-cycle-global-status)
(org-cycle-subtree-status): Set state property.
(org-heading-components): Use org-heading-regexp in
orgstruct-mode.
(orgstruct-heading-prefix-regexp, orgstruct-setup-hook): New
options.
(orgstruct-initialized): New variable.
(orgstruct-mode): Simplify implementation.
(orgstruct-setup): Simplify implementation.  Translate keys to
their most general equivalent.
(orgstruct-make-binding): Generate index on the fly.  Discard
alternative keys.  Bind variables according to
orgstruct-heading-prefix-regexp.
(org-get-local-variables): Honour state property.
(org-run-like-in-org-mode): Do not override variables with
non-default values.
(org-forward-heading-same-level): Do not skip to headlines on
another level.  Handle negative prefix argument correctly.
(org-backward-heading-same-level): Use
org-forward-heading-same-level.
lisp/org.el