From daf36fc918e5c46013e523e5677d06f09e91ea78 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Fri, 30 Aug 2013 17:48:51 +0200 Subject: [PATCH] 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. --- doc/org.texi | 9 +++++---- lisp/org-table.el | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 55c421d3b..96a7a4489 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 c7e7eb867..8b6830056 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))))