emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Patch for org-table-export


From: Carsten Dominik
Subject: Re: [Orgmode] Patch for org-table-export
Date: Mon, 3 Aug 2009 07:42:51 +0200

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]