From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: exporting nested list to CSV file Date: Tue, 22 Jul 2014 10:52:21 -0800 Message-ID: <20140722105221.254307f2@voltron.arsc.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406055097 29544 80.91.229.3 (22 Jul 2014 18:51:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2014 18:51:37 +0000 (UTC) To: Gnu Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 22 20:51:30 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X9f9n-0000Tv-OZ for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2014 20:51:23 +0200 Original-Received: from localhost ([::1]:40700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9f9n-0001ZR-Dx for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Jul 2014 14:51:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9f9U-0001TK-4C for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 14:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9f9L-0005pO-OB for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 14:51:04 -0400 Original-Received: from mail-pd0-f182.google.com ([209.85.192.182]:55862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9f9L-0005p4-JF for help-gnu-emacs@gnu.org; Tue, 22 Jul 2014 14:50:55 -0400 Original-Received: by mail-pd0-f182.google.com with SMTP id fp1so86595pdb.13 for ; Tue, 22 Jul 2014 11:50:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-transfer-encoding; bh=CmYHHf9gO4yXRdTCTCUymvZdDtuiTLErjURDRQL8CI0=; b=Aw8yQ2a4P+ZdjTIcuNRZnehj6/oXHWA7AxUNkz2a/EbSc1mem2pa5rGOvnefJEI1uo orazT0VJpRtvhX9lBNS9UETSYB6BWzUG1bgPEGKyDdqe6OeyHLoVwoShpGbK1hPr3o82 TbUs0srtWYVBA92bIEx0f6P+C3n/8DD4mvU326l79FEioo9oGhimRLnfYlLjaEI55Kty YQ8MnKVjSsOUyki5CqBKWi1aceyzISV2QDajVog87zYmvU+oDSxVIuPJGCekZWwoIbMf miCXlw/UvyZ6u+nWiD+x91C1LLtNdB//j4HOrQIPpRmvAvaguP0l5PK/G4H3CgnKPX9F VB/Q== X-Gm-Message-State: ALoCoQlzm0kRXL996ENgGpfVgE2pxDJqV4k2f023hOYJxZ2REzRsO46rCXoCK1ZyvNCqKKloVzlK X-Received: by 10.70.39.66 with SMTP id n2mr4246551pdk.131.1406055053718; Tue, 22 Jul 2014 11:50:53 -0700 (PDT) Original-Received: from voltron.arsc.edu ([199.165.81.33]) by mx.google.com with ESMTPSA id ph6sm1162377pbc.38.2014.07.22.11.50.52 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 22 Jul 2014 11:50:53 -0700 (PDT) X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98902 Archived-At: Hi. I've been using the pcsv library to parse data from external CSV files, then using various elisp functions to filter/munge the data. Afterwards, I was sad to discover that pcsv does not have any functions for /writing/ data back to a CSV file. Since the data is well-structured, presumably this shouldn't be hard to do. Could I get some guidance on what would be the simplest approach? Is there another library I've overlooked? Or some built-ins that would be especially helpful? The data are in lists like so: (("row0datastring", "row0datastring", "row0datastring", ...) ("row1datastring", "row1datastring", "row1datastring", ...) ... )