From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Riedy Subject: [PATCH 0/4] Adding orgtbl-to-orbtbl and cleaning orgtbl-to-sqlinsert. Date: Sun, 4 May 2008 18:54:39 -0700 Message-ID: <1209952483-23714-1-git-send-email-jason@acm.org> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jspuw-0006Uw-M8 for emacs-orgmode@gnu.org; Sun, 04 May 2008 21:55:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jspuu-0006Td-6j for emacs-orgmode@gnu.org; Sun, 04 May 2008 21:55:01 -0400 Received: from [199.232.76.173] (port=33055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jsput-0006TL-Mt for emacs-orgmode@gnu.org; Sun, 04 May 2008 21:54:59 -0400 Received: from b.mail.sonic.net ([64.142.19.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jsput-0004CA-BJ for emacs-orgmode@gnu.org; Sun, 04 May 2008 21:54:59 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Jason Riedy I needed an orgtbl-to-orgtbl transformation when writing up transformation examples. It seems pretty core, so I've added it to org-table.el. The function needs a way to suppress :tstart and :tend strings, so I added support for explicit nils. Cleaning up the orgtbl-to-sqlinsert function lead to some cute little problems. One was that formatting columns with plist would pass values through directly rather than quoting them. So I a general *orgtbl-default-fmt* variable to handle all columns that aren't in the plist. A similar one for the header might be useful, but I haven't needed it. All these can be pulled from git://repo.or.cz/org-mode/ejr.git master BTW, Bruno Haible's git ChangeLog merger has been working wonderfully for me. It also is in gnulib; see the message for how to generate it with gnulib-tool: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/12653 Jason Riedy (4): Provide an *orgtbl-default-fmt* for entries not in a fmt plist. Allow an explicitly nil :tstart and :tend to suppress the strings. Add an orgtbl-to-orgtbl transformation. Clean up orgtbl-sqlinsert. ChangeLog | 10 ++++++++++ contrib/ChangeLog | 7 +++++++ contrib/lisp/orgtbl-sqlinsert.el | 13 +++++++------ lisp/org-table.el | 33 ++++++++++++++++++++++++++++----- 4 files changed, 52 insertions(+), 11 deletions(-)