org.el: Disable {pro,de}motion commands in orgstruct-mode if orgstruct-heading-prefix...
commit03b1edf3c14858c04f0dcfde326e247bf71ecf3a
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Mar 2013 13:41:04 +0000 (10 14:41 +0100)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Sun, 10 Mar 2013 13:41:04 +0000 (10 14:41 +0100)
tree6d83f1dc7673fd904b7a7799b3346825f9294a33
parentccee7e4885976012e12e40acb73d00894fc54fb2
org.el: Disable {pro,de}motion commands in orgstruct-mode if orgstruct-heading-prefix-regexp is non-nil

* org.el (orgstruct-heading-prefix-regexp): Change default
value to nil.
(orgstruct-error): Use user-error if available.
(orgstruct-setup): Disable bindings of {pro,de}motion commands
if orgstruct-heading-prefix-regexp is non-nil.  Always use
org-outline-level.
(orgstruct-make-binding): New argument
DISABLE-WHEN-HEADING-PREFIX.
lisp/org.el