From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: table export to same buffer Date: Sat, 03 Aug 2013 09:25:43 +0200 Message-ID: <87fvurb5hk.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5WDd-0006ny-4S for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:25:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5WDU-0006EA-N6 for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:25:41 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:58220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5WDU-0006E3-Er for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 03:25:32 -0400 Received: by mail-wg0-f43.google.com with SMTP id z12so1109797wgg.34 for ; Sat, 03 Aug 2013 00:25:31 -0700 (PDT) In-Reply-To: (Rustom Mody's message of "Sat, 3 Aug 2013 10:22:20 +0530") 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: Rustom Mody Cc: emacs-orgmode Hello, Rustom Mody writes: > The context is writing C with C mode (or haskell with haskell-mode python > with python-mode etc) ie the user is not using orgmode. That is why I > mentioned orgtbl, ie org table editing facilities are needed but the major > mode is something else. > > However here some pre and postprocessing is also probably required. > Something like an automation of the following: > > 1. Editing a large struct spec in C -- major mode is C-mode > 2. Select the region (may even be a rectangle) > 3. Paste into an org-mode buffer > 4. Run C-c | on region > 5. Edit table as required > 6. org-table-export in desired format to a file F > 7. Visit F > 8. Copy/Cut F (if necessary as rectangle) > 9. Go back to original C-mode buffer and paste There's also `org-export-replace-region-by'. Regards, -- Nicolas Goaziou