0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-22 21:48:41 +00:00

org.el: Disable orgstruct-mode when falling back to original command

* org.el (orgstruct-make-binding):
Disable orgstruct-mode on fallback.
This commit is contained in:
Christopher Schmidt 2013-02-13 12:35:55 +01:00
parent 5ab647af64
commit 7c27e57c4c

View file

@ -8672,7 +8672,8 @@ should be checked in for a command to execute outside of tables."
'item-body)))
(org-run-like-in-org-mode ',fun)
t))
(let ((binding (let ((orgstruct-mode)) (key-binding ,key))))
(let* ((orgstruct-mode)
(binding (key-binding ,key)))
(if (keymapp binding)
(set-temporary-overlay-map binding)
(call-interactively