Browse Source

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

* org.el (orgstruct-make-binding):
Disable orgstruct-mode on fallback.
Christopher Schmidt 12 years ago
parent
commit
7c27e57c4c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org.el

+ 2 - 1
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