org.el (orgstruct-setup): Require `org-element'.

* org.el (orgstruct-setup): Require `org-element'.

This prevents an error for git users who use orgstruct-mode
(and orgstruct++-mode) and forget to make autoloads.
This commit is contained in:
Bastien Guerry 2012-08-11 09:15:30 +02:00
parent 73c1948c15
commit c5bc43133b
1 changed files with 3 additions and 0 deletions

View File

@ -8528,6 +8528,9 @@ buffer. It will also recognize item context in multiline items."
cmd (orgstruct-make-binding fun nfunc key))
(org-defkey orgstruct-mode-map key cmd))
;; Prevent an error for users who forgot to make autoloads
(require 'org-element)
;; Special treatment needed for TAB and RET
(org-defkey orgstruct-mode-map [(tab)]
(orgstruct-make-binding 'org-cycle 102 [(tab)] "\C-i"))