From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Automagically send all org table Date: Mon, 14 Jan 2013 18:33:48 +0530 Message-ID: <87sj63vruz.fsf@gmail.com> References: <50F3DD17.5070705@gmail.com> <20130114122456.GC19255@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tujhx-0003yo-DO for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 08:04:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tujhv-0005YW-0p for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 08:04:09 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:64032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tujhu-0005Xx-Ph for emacs-orgmode@gnu.org; Mon, 14 Jan 2013 08:04:06 -0500 Received: by mail-pb0-f50.google.com with SMTP id wz7so2146462pbc.37 for ; Mon, 14 Jan 2013 05:04:05 -0800 (PST) In-Reply-To: <20130114122456.GC19255@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Mon, 14 Jan 2013 13:24: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: Xavier Garrido Cc: emacs-orgmode@gnu.org 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 document to >> their RECEIVER counterparts. Of course, I can go through the whole document >> 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. ---------------------------------------------------------------------- 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-html-batch) emacs --batch --load=~/MyInitStuff.el --visit=MyFile --funcall 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) ---------------------------------------------------------------------- --