summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Schmidt <christopher@ch.ristopher.com>2013-02-13 12:35:55 +0100
committerChristopher Schmidt <christopher@ch.ristopher.com>2013-02-13 12:35:55 +0100
commit7c27e57c4c27e5c98fa2988ec6de38b4f7144b06 (patch)
treee5af5266dd6fd043d074cf7e26c4f276cbf2c5a1
parent5ab647af6488219350e3419241d4282598689f69 (diff)
downloadorg-mode-7c27e57c4c27e5c98fa2988ec6de38b4f7144b06.tar.gz
org.el: Disable orgstruct-mode when falling back to original command
* org.el (orgstruct-make-binding): Disable orgstruct-mode on fallback.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index c6054a8..46d4341 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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