From: Gregory Grubbs <gregory@dynapse.com>
To: emacs-orgmode@gnu.org
Subject: Patch for org-table-export
Date: Sun, 2 Aug 2009 23:13:35 -0600 [thread overview]
Message-ID: <b0da11960908022213x53786501g44603a6ad7480edf@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 943 bytes --]
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)
[-- Attachment #1.2: Type: text/html, Size: 1057 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next reply other threads:[~2009-08-03 5:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 5:13 Gregory Grubbs [this message]
2009-08-03 5:42 ` Patch for org-table-export Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b0da11960908022213x53786501g44603a6ad7480edf@mail.gmail.com \
--to=gregory@dynapse.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).