From 07c77bc4dce67f92959047a7861a089e8be08303 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 26 Nov 2008 08:30:21 +0100 Subject: [PATCH] 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. --- lisp/ChangeLog | 3 +++ lisp/org-table.el | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 99ef7433b..5d02e1e7b 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-11-26 Carsten Dominik + * 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 1a83d972b..ffab7ade2 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.")