From mboxrd@z Thu Jan 1 00:00:00 1970 From: Garrido Xavier Subject: Re: Automagically send all org table Date: Mon, 14 Jan 2013 15:07:46 +0100 Message-ID: <50F41132.3090002@lal.in2p3.fr> References: <50F3DD17.5070705@gmail.com> <20130114122456.GC19255@kuru.dyndns-at-home.com> <87sj63vruz.fsf@gmail.com> <87pq1750jb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tulgg-0004s5-PA for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 10:11:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tulgc-0007Ff-Pe for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 10:10:58 -0500 Received: from smtp1.lal.in2p3.fr ([134.158.88.100]:33115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tukgz-0006tE-VD for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 09:07:14 -0500 In-Reply-To: <87pq1750jb.fsf@gmail.com> 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: Jambunathan K Cc: Xavier Garrido , emacs-orgmode@gnu.org Thank you all, Xavier Le lun. 14 janv. 2013 14:58:32 CET, Jambunathan K a =C3=A9crit : > Jambunathan K writes: > >> Suvayu Ali writes: >> >>> On Mon, Jan 14, 2013 at 11:25:27AM +0100, Xavier Garrido wrote: >>>> Hi orgmoders, >>>> >>>> I am looking for a simple way to SEND all org tables in a given docu= ment to >>>> their RECEIVER counterparts. Of course, I can go through the whole d= ocument >>>> and do `org-table-send` one-by-one but I would like to do it without= opening >>>> the document and for all tables at the same time. Is there a way ? >>>> >>>> Thanks for your help and advices, >>> >>> I do not see any other way >> >> There is a way >> >>> but writing some elisp code of your own. >> >> Why not have Emacs write it for you? You dictate and Emacs will type >> out the elisp code. >> >>> It should be simple to do, I think. >> >> Not simpler than resorting to macros. >> >> Here is how. Just hints. OP should help himself. > > Here is what I (or rather Emacs) came up with. The Elisp snippet has > control characters, so see the attachment. > > > > > Put that in to your .emacs or C-x C-e it. > > Then, if you know that your file has no more than N (say 100) tables, d= o > > C-x C-f myfile.html > C-u 100 M-x send-table RET > > You are done. > >> >> ---------------------------------------------------------------------- >> >> Begin macro, do stuff, end macro, >> >> C-x (, do stuff, C-x ) >> >> Execute macro >> C-x e >> >> Or provide a local, on-the-move binding and execute it. >> C-x C-k b >> >> Name the macro and store it as a command in your .emacs. >> C-x C-k n, M-x insert-kbd-macro >> >> Run the stored macro from batch script (Hint: C-h v org-export-as-htm= l-batch) >> emacs --batch --load=3D~/MyInitStuff.el --visit=3DMyFile --fun= call MyNamedMacro" >> >> ---------------------------------------------------------------------- >> >> For help with jumping to relevant Info portions, do >> >> C-h K C-x ( >> C-h K C-x C-k n >> >> (Note the CAPITAL `K' above) >> >> ---------------------------------------------------------------------- > > > -- | |__ GARRIDO Xavier Laboratoire de l'Acc=C3=A9l=C3=A9rateur Li= n=C3=A9aire /\ NEMO Universit=C3=A9 Paris-Sud 11 /--\ garrido@lal.in2p3.fr UMR 8607 | garrido@in2p3.fr Batiment 200 |__ +33 1.64.46.84.28 91898 Orsay Cedex, France