From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gunther Clasen Newsgroups: gmane.emacs.help Subject: FW: multiple table exports in org-mode Date: Tue, 4 Apr 2017 09:29:31 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491320656 31462 195.159.176.226 (4 Apr 2017 15:44:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 15:44:16 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 04 17:44:12 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvQcs-0007TR-L7 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 17:44:10 +0200 Original-Received: from localhost ([::1]:36350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvQcy-00054K-Kw for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 11:44:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvPv6-0000O6-N1 for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 10:58:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvPv2-0002yr-PV for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 10:58:56 -0400 Original-Received: from mail-db5eur01on0049.outbound.protection.outlook.com ([104.47.2.49]:7028 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvPv2-0002yW-C8 for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 10:58:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ensilica.onmicrosoft.com; s=selector1-ensilica-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=63pxqByA8CbCr3wud+xiPsk0lUmf1ow6H0Ym6b5NJ6g=; b=NK/FZW5Wfz3C83KOjFWjFyLxPlThP178+5Zv8bKEbKsZm1ZJTMrwIFpzl4jWGJ5bRQLByo/JFURrfp7L7S/sT0WYM/TqFAsIy26CFld5INdtPapZqNNQx247hVgMrot0LOztsr1l8IVGYqwGU/DcmXVUFjbUJfl2A/MwS1EsThU= Original-Received: from LO1P123MB0835.GBRP123.PROD.OUTLOOK.COM (10.167.25.136) by LO1P123MB0835.GBRP123.PROD.OUTLOOK.COM (10.167.25.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 09:29:32 +0000 Original-Received: from LO1P123MB0835.GBRP123.PROD.OUTLOOK.COM ([10.167.25.136]) by LO1P123MB0835.GBRP123.PROD.OUTLOOK.COM ([10.167.25.136]) with mapi id 15.01.1005.018; Tue, 4 Apr 2017 09:29:32 +0000 Thread-Topic: multiple table exports in org-mode Thread-Index: AdKouEVCnnl2+zzhSJSaJP/EsgZP3AEbaQ7w Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none; gnu.org; dmarc=none action=none header.from=ensilica.com; x-originating-ip: [81.168.74.141] x-microsoft-exchange-diagnostics: 1; LO1P123MB0835; 7:H3uRLA2zmeTn+fogjxCoFwhKz2Ij41qNHVDG3gfYszs5/JG+6WFGVE/aOeVl3qfvp5LjpVCacQCSvCVN176cIehOFcNvLuwnvQSatqZiJ2+s0uVvQuZlceMrRdWWG3FaaFa9EJ6f9ofp+o3STGXXxyKOfvD61UqnRCTDAL68zizf9sFuWnPaSh/0OW5cLV1Ou0BMFzQUA8Cd4PqOmSGUSvXpRqzVzIdmK2bFCxIEYgf/6ldscrC1p8a38jo4rinFDGoU1rScVbkO3AyPEeDqBndXugTHROtVRoZbxsVnqZ4CvfBvw/0qu5frWrbMhQeO/48bAkX4mdWBSlOT+5YQ6g== x-ms-office365-filtering-correlation-id: 6c669693-1f30-4e66-ba9d-08d47b3d19b0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075); SRVR:LO1P123MB0835; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(2016111802025)(20161123562025)(20161123564025)(6072148)(6043046); SRVR:LO1P123MB0835; BCL:0; PCL:0; RULEID:; SRVR:LO1P123MB0835; x-forefront-prvs: 0267E514F9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(54896002)(6306002)(5630700001)(54356999)(9686003)(790700001)(55016002)(2473003)(6116002)(102836003)(50986999)(2906002)(189998001)(66066001)(2501003)(53936002)(33656002)(3846002)(122556002)(9326002)(5660300001)(6916009)(229853002)(3280700002)(74316002)(8936002)(3660700001)(25786009)(6436002)(110136004)(81166006)(38730400002)(8676002)(86362001)(2900100001)(77096006)(7736002)(5640700003)(6506006)(2351001)(7696004)(554374003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:LO1P123MB0835; H:LO1P123MB0835.GBRP123.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: ensilica.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2017 09:29:31.7914 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0c6ba32a-3661-45d6-8c29-48e48104de3e X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO1P123MB0835 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.49 X-Mailman-Approved-At: Tue, 04 Apr 2017 11:35:59 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112688 Archived-At: Hi, I have created an outline view with a few properties, which I edit in table= view. I need to export some of the columns to CSV. This is what I have: * My Stuff :PROPERTIES: :ID: MyTable :COLUMNS: %Col1 %Col2 %Col3 %Col4 %Col5 %Col6 :END: ** Stuff ... * My Stuff - Table View #+BEGIN: columnview :id "MyTable" #+END This all works fine and I can export it to csv, except what I really want i= n the Table View is a table with the following format: :COLUMNS: %Col1 %Col2 %Col3 %Col4 I may have a need to also export a table with yet another format, e. g. :COLUMNS: %Col1 %Col2 %Col5 %Col6 At the moment, I have different :COLUMN: at the beginning of the file and I= comment out the one I don't use. This is not exactly ideal. Is there a bet= ter solution to this? Also, I don't actually work on all the columns at onc= e, so really if I could define those two columns at the top and then use th= e column view on one or the other, that would be fab. But that's probably a= sking too much... I could export all columns and use the cut command on the csv file to remov= e what I don't need. Thanks for any ideas! Gunther