emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] org-fill-paragraph on #+TBLNAME
Date: Fri, 26 Apr 2013 15:31:10 +0200	[thread overview]
Message-ID: <CALn3zoivdtVcxB3MD6amA5YAiNzZ4YmFOD79fQM04zYyK8f0CQ@mail.gmail.com> (raw)
In-Reply-To: <87vc7978bu.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

Hi Nicolas

On Fri, Apr 26, 2013 at 3:03 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> NAME should be a drop-in replacement for TBLNAME[fn:1].

Thanks for confirming my understanding.

> If it doesn't work for remote references in tables, then "org-table.el"
> must be updated.

It did not yet for remote references, patch attached.

Michael

[-- Attachment #2: 0001-Allow-also-NAME-table-for-remote-references.patch.txt --]
[-- Type: text/plain, Size: 1001 bytes --]

From 68a96411e468a211453ce83c3a139cc2952c6e72 Mon Sep 17 00:00:00 2001
From: Michael Brand <michael.ch.brand@gmail.com>
Date: Fri, 26 Apr 2013 15:28:51 +0200
Subject: [PATCH] Allow also "#+NAME: table" for remote references

* lisp/org-table.el (org-table-get-remote-range): Extend regexp to
match "#+NAME: table" additionally to "#+TBLNAME: table".
---
 lisp/org-table.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 93c33b2..8e461c8 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4996,7 +4996,8 @@ list of the fields in the rectangle."
 	  (save-excursion
 	    (goto-char (point-min))
 	    (if (re-search-forward
-		 (concat "^[ \t]*#\\+tblname:[ \t]*" (regexp-quote name-or-id) "[ \t]*$")
+		 (concat "^[ \t]*#\\+\\(tbl\\)?name:[ \t]*"
+			 (regexp-quote name-or-id) "[ \t]*$")
 		 nil t)
 		(setq buffer (current-buffer) loc (match-beginning 0))
 	      (setq id-loc (org-id-find name-or-id 'marker))
-- 
1.8.1.2


  reply	other threads:[~2013-04-26 13:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 12:36 Michael Brand
2013-04-26 12:31 ` Nicolas Goaziou
2013-04-26 12:58   ` Michael Brand
2013-04-26 13:03     ` Nicolas Goaziou
2013-04-26 13:31       ` Michael Brand [this message]
2013-04-26 14:00         ` Nicolas Goaziou
2013-04-26 15:10           ` Michael Brand
2013-04-26 21:21             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALn3zoivdtVcxB3MD6amA5YAiNzZ4YmFOD79fQM04zYyK8f0CQ@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --subject='Re: [BUG] org-fill-paragraph on #+TBLNAME' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).