From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: [patch] capture property table-line-pos can be a function Date: Mon, 17 Mar 2014 17:58:30 +0100 Message-ID: <87a9co4v9l@gmx.de> References: <87eh23i5uf@gmx.de> <87zjkpsl3s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=Multipart0o0o0o0o0o0o0o" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPas4-0006Lu-1Z for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 12:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPary-0002zZ-Rd for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 12:58:39 -0400 In-Reply-To: (Thomas Holst's message of "Mon, 17 Mar 2014 08:43:56 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Holst Cc: Bastien , "emacs-orgmode@gnu.org" , Thomas Holst --=Multipart0o0o0o0o0o0o0o Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, > Hi Bastien, > > · Bastien wrote: >> Thomas Holst writes: >> >>> Given a table with several sections and a capture template for entries >>> in this table. The sections are dynamic, so a static value for >>> table-line-pos does not help. With this patch table-line-pos can be: >>> >>> - a string like "II-2" >>> - a varialbe containing a string >>> - or a function >>> The function has to return a string which qualifies for table-line-pos >>> >>> This serves me well and I am using it for more than one year now. >> >> This sounds useful. Could you also provide a patch for the >> documentation? >> >> Thanks in advance! ok here is the patch for documentation. -- Bis neulich ... Thomas --=Multipart0o0o0o0o0o0o0o Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-docu-change-for-table-line-pos-new-feature.patch Content-Description: patch for new fatures for table-line-pos >From 436e5adb0a9d0bc9ac37352bd90018c973dfdabf Mon Sep 17 00:00:00 2001 From: Thomas Holst Date: Mon, 17 Mar 2014 09:01:40 +0100 Subject: [PATCH] docu change for table-line-pos new feature * org.texi: document new features of `table-line-pos' in capture templates --- doc/org.texi | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index b53b668..2bebae4 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -7095,9 +7095,10 @@ narrow it so that you only see the new material. @item :table-line-pos Specification of the location in the table where the new line should be -inserted. It should be a string like @code{"II-3"} meaning that the new -line should become the third line before the second horizontal separator -line. +inserted. It can be a string, a variable holding a string or a function +returning a string. The string should look like @code{"II-3"} meaning that +the new line should become the third line before the second horizontal +separator line. @item :kill-buffer If the target file was not yet visited when capture was invoked, kill the -- 1.7.9 --=Multipart0o0o0o0o0o0o0o--