From 0b74864bfb3b4f08d5b297d2b63d9cbc17120e58 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 10 Oct 2014 16:27:56 +0200 Subject: [PATCH] org-table: Do not look after CONSTANTS in Orgtbl mode * lisp/org-table.el (orgtbl-ctrl-c-ctrl-c): Do not set constants. Orgtbl provides limited support for Org tables in an arbitrary major mode. Any Org syntax outside tables, including keywords, cannot be supported in this environment. Therefore there is no point to look for CONSTANTS keywords. Moreover, constants can be defined within the table. This change allows to move `org-table-set-constants' feature to `org-set-regexps-and-options' and treat CONSTANTS keyword like any other keyword (e.g., defining it in a SETUPFILE). --- lisp/org-table.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 96de6ce28..bdd4476f8 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -4372,7 +4372,6 @@ With prefix arg, also recompute table." (when (orgtbl-send-table 'maybe) (run-hooks 'orgtbl-after-send-table-hook))) ((eq action 'recalc) - (org-table-set-constants) (save-excursion (beginning-of-line 1) (skip-chars-backward " \r\n\t")