Explorar el Código

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

* org.el (orgstruct-make-binding):
Disable orgstruct-mode on fallback.
Christopher Schmidt hace 12 años
padre
commit
7c27e57c4c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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