summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2013-08-30 17:48:51 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2013-08-30 17:53:28 +0200
commitdaf36fc918e5c46013e523e5677d06f09e91ea78 (patch)
treeee8d8eed58bb61c2607354a397524e4d601e40e0
parent31c2c517f4e965b630f7942eb09aaa6c12954901 (diff)
downloadorg-mode-daf36fc918e5c46013e523e5677d06f09e91ea78.tar.gz
Fix some issue with orgtbl-mode
* lisp/org-table.el (orgtbl-send-replace-tbl): Allow multiple spaces between keywords in RECEIVE ORGTBL lines. * doc/org.texi (A @LaTeX{} example): Fix typo in variable name.
-rw-r--r--doc/org.texi9
-rw-r--r--lisp/org-table.el4
2 files changed, 7 insertions, 6 deletions
diff --git a/doc/org.texi b/doc/org.texi
index 55c421d..96a7a44 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -16782,9 +16782,10 @@ can use Org's facilities to edit and structure lists by turning
@cindex radio tables
To define the location of the target table, you first need to create two
-lines that are comments in the current mode, but contain magic words for
-Orgtbl mode to find. Orgtbl mode will insert the translated table
-between these lines, replacing whatever was there before. For example:
+lines that are comments in the current mode, but contain magic words
+@code{BEGIN/END RECEIVE ORGTBL} for Orgtbl mode to find. Orgtbl mode will
+insert the translated table between these lines, replacing whatever was there
+before. For example in C mode where comments are between @code{/* ... */}:
@example
/* BEGIN RECEIVE ORGTBL table_name */
@@ -16858,7 +16859,7 @@ The best way to wrap the source table in @LaTeX{} is to use the
activated by placing @code{\usepackage@{comment@}} into the document
header. Orgtbl mode can insert a radio table skeleton@footnote{By
default this works only for @LaTeX{}, HTML, and Texinfo. Configure the
-variable @code{orgtbl-radio-tables} to install templates for other
+variable @code{orgtbl-radio-table-templates} to install templates for other
modes.} with the command @kbd{M-x orgtbl-insert-radio-table RET}. You will
be prompted for a table name, let's say we use @samp{salesfigures}. You
will then get the following template:
diff --git a/lisp/org-table.el b/lisp/org-table.el
index c7e7eb8..8b68300 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4399,14 +4399,14 @@ a radio table."
(save-excursion
(goto-char (point-min))
(unless (re-search-forward
- (concat "BEGIN RECEIVE ORGTBL +" name "\\([ \t]\\|$\\)") nil t)
+ (concat "BEGIN +RECEIVE +ORGTBL +" name "\\([ \t]\\|$\\)") nil t)
(user-error "Don't know where to insert translated table"))
(goto-char (match-beginning 0))
(beginning-of-line 2)
(save-excursion
(let ((beg (point)))
(unless (re-search-forward
- (concat "END RECEIVE ORGTBL +" name) nil t)
+ (concat "END +RECEIVE +ORGTBL +" name) nil t)
(user-error "Cannot find end of insertion region"))
(beginning-of-line 1)
(delete-region beg (point))))