diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2008-11-26 08:30:21 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2008-11-26 08:30:21 +0100 |
commit | 07c77bc4dce67f92959047a7861a089e8be08303 (patch) | |
tree | f5e742988d9cb429e6b040d2c0f76fc8a64b2c2a | |
parent | c0a779bd9d6488d50cd9fa5271baebca8aa4ff9f (diff) | |
download | org-mode-07c77bc4dce67f92959047a7861a089e8be08303.tar.gz |
Make S-SPC work in orgtbl-mode.
S-SPC did lead to an error in orgtbl-mode, because there is no binding
to this key. Now orgtbl-self-insert-command falls back on calling
self-insert-command for such cases.
-rwxr-xr-x | lisp/ChangeLog | 3 | ||||
-rw-r--r-- | lisp/org-table.el | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99ef743..5d02e1e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-11-26 Carsten Dominik <carsten.dominik@gmail.com> + * org-table.el (orgtbl-self-insert-command): Make S-SPC work in + orgtbl-mode. + * org-exp.el (org-export-as-ascii): Remove the handling of targets. (org-export-ascii-preprocess): Handle targets already in this diff --git a/lisp/org-table.el b/lisp/org-table.el index 1a83d97..ffab7ad 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3492,12 +3492,13 @@ overwritten, and the table is not marked as requiring realignment." (self-insert-command N)) (setq org-table-may-need-update t) (let (orgtbl-mode a) - (call-interactively - (key-binding - (or (and (listp function-key-map) - (setq a (assoc last-input-event function-key-map)) - (cdr a)) - (vector last-input-event))))))) + (call-interactively + (or (key-binding + (or (and (listp function-key-map) + (setq a (assoc last-input-event function-key-map)) + (cdr a)) + (vector last-input-event))) + 'self-insert-command))))) (defvar orgtbl-exp-regexp "^\\([-+]?[0-9][0-9.]*\\)[eE]\\([-+]?[0-9]+\\)$" "Regular expression matching exponentials as produced by calc.") |