emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Gregory Grubbs <gregory@dynapse.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Patch for org-table-export
Date: Mon, 3 Aug 2009 07:42:51 +0200	[thread overview]
Message-ID: <04604EB8-AC03-4EE6-B2ED-0B4A573BC6B1@gmail.com> (raw)
In-Reply-To: <b0da11960908022213x53786501g44603a6ad7480edf@mail.gmail.com>

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

      reply	other threads:[~2009-08-03  5:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03  5:13 Patch for org-table-export Gregory Grubbs
2009-08-03  5:42 ` Carsten Dominik [this message]

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=04604EB8-AC03-4EE6-B2ED-0B4A573BC6B1@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gregory@dynapse.com \
    /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).