From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Export all radio tables off a document Date: Fri, 6 Dec 2013 00:59:38 +0100 Message-ID: <20131205235938.GA19242@kuru.dyndns-at-home.com> References: <52A08017.1010608@th-grothe.de> <52A0BCFD.4090303@lal.in2p3.fr> <52A0DE91.6070403@th-grothe.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voiph-0004TR-J2 for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 18:59:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voipd-00046X-5S for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 18:59:49 -0500 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:36410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voipc-00046S-VK for emacs-orgmode@gnu.org; Thu, 05 Dec 2013 18:59:45 -0500 Received: by mail-we0-f179.google.com with SMTP id q59so17090746wes.24 for ; Thu, 05 Dec 2013 15:59:43 -0800 (PST) Received: from kuru.dyndns-at-home.com (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id dj8sm958583wid.2.2013.12.05.15.59.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Dec 2013 15:59:41 -0800 (PST) Content-Disposition: inline In-Reply-To: <52A0DE91.6070403@th-grothe.de> 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: emacs-orgmode@gnu.org On Thu, Dec 05, 2013 at 09:14:09PM +0100, Thorsten Grothe wrote: > Hi, > > * Thu, 05 Dec 2013 18:50:53 +0100, garrido@lal.in2p3.fr: > > >Hi, > > > >I asked the same question sometimes ago > >http://www.mail-archive.com/emacs-orgmode@gnu.org/msg64189.html and > >Carsten posted this answer which is still working for me > > > > > >(defun my-org-send-all-tables () > > (interactive) > > (org-table-map-tables > > (lambda () (orgtbl-send-table 'maybe)))) > > > > very very nice, it works !!!!! Thank you very much! It's a bit slow but > that's not a problem!! I'm working with Auctex here and the code is not > indented after exporting the tables. Would it be possible to expand the > macro so that it automatically indents the code --> in Auctex this is C-c > C-q C-e ? The lambda bit in the above snippet is a function that operates on all tables one at a time. If you can reliably select the exported table, you can call indent-region (or whatever special function AucTeX might use) to indent it. Maybe a nice simple lisp project to get started programming in lisp? ;) GL, -- Suvayu Open source is the future. It sets us free.