From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Patch for org-table-export Date: Mon, 3 Aug 2009 07:42:51 +0200 Message-ID: <04604EB8-AC03-4EE6-B2ED-0B4A573BC6B1@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXqK6-0003rf-DW for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 01:43:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXqK1-0003rS-Sr for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 01:43:01 -0400 Received: from [199.232.76.173] (port=49704 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXqK1-0003rP-8o for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 01:42:57 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:57404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXqK0-0006kj-PZ for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 01:42:56 -0400 Received: by ewy7 with SMTP id 7so1062078ewy.42 for ; Sun, 02 Aug 2009 22:42:56 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gregory Grubbs Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Aug 3, 2009, at 7:13 AM, Gregory Grubbs wrote: > I like to make org-mode tables in arbitrary buffers, then save them > as CVS files. The export fails when done from a buffer with no > associated file. > > Here's a little patch that allows exporting a table from any buffer > (org-mode version 6.28trans): > > diff --git a/lisp/org-table.el b/lisp/org-table.el > index 410f721..4b85f97 100644 > --- a/lisp/org-table.el > +++ b/lisp/org-table.el > @@ -471,8 +471,9 @@ property, locally or anywhere up in the > hierarchy." > (error "Abort"))) > (if (file-directory-p file) > (error "This is a directory path, not a file")) > - (if (equal (file-truename file) > - (file-truename (buffer-file-name))) > + (if (and (buffer-file-name) > + (equal (file-truename file) > + (file-truename (buffer-file-name)))) > (error "Please specify a file name that is different from > current")) > (unless format > (setq deffmt-readable org-table-export-default-format) > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode