emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug in org-table-convert-region?
Date: Tue, 28 May 2013 12:20:43 +0200	[thread overview]
Message-ID: <87r4gre77o.fsf@gmail.com> (raw)
In-Reply-To: 86txlnqwqz.fsf@somewhere.org

"Sebastien Vauban" <sva-news@mygooglest.com>
writes:

> I've considered the following table:
>
> test a b c
> test  a  b  c
> test   a   b   c
> test    a    b    c
> test     a     b     c
> test      a      b      c
>
> and tried to convert it with various configs:
>
> - M-x org-table-convert-region
> - C-u M-x org-table-convert-region
> - C-u 4 M-x org-table-convert-region
> - C-u 3 M-x org-table-convert-region
>
> In all cases, when evaluating `separator' under edebug, it showed me `nil',
> and always converted the table into this:
>
> | test | a | b | c |
> | test | a | b | c |
> | test | a | b | c |
> | test | a | b | c |
> | test | a | b | c |
> | test | a | b | c |
>
> So, `separator' seems never to get a correct value, and to be constantly be
> equal to `nil'. Dunno why, though.
>
> Do you confirm this as well?

Yes, I can confirm this. So either (interactive "rP") isn't a valid
combination, then its a bug in the org command3, or it is a valid
combination and should work - then its a bug in Emacs 24?

Evaluating the function works as expected though:

,-----------------------------------------
| M-: (org-table-convert-region beg end 2)
| 
| | test a b c |   |   |   |
| | test       | a | b | c |
| | test       | a | b | c |
| | test       | a | b | c |
| | test       | a | b | c |
| | test       | a | b | c |
| |            |   |   |   |
`-----------------------------------------


,-----------------------------------------
| M-: (org-table-convert-region beg end 3)
| 
| | test a b c    |   |   |   |
| | test  a  b  c |   |   |   |
| | test          | a | b | c |
| | test          | a | b | c |
| | test          | a | b | c |
| | test          | a | b | c |
| |               |   |   |   |
`-----------------------------------------


,-----------------------------------------
| M-: (org-table-convert-region beg end 4)
| 
| | test a b c       |   |   |   |
| | test  a  b  c    |   |   |   |
| | test   a   b   c |   |   |   |
| | test             | a | b | c |
| | test             | a | b | c |
| | test             | a | b | c |
| |                  |   |   |   |
`-----------------------------------------


-- 
cheers,
Thorsten

  reply	other threads:[~2013-05-28 10:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-27 22:59 Bug in org-table-convert-region? Thorsten Jolitz
2013-05-28  7:17 ` Sebastien Vauban
2013-05-28  9:03   ` Thorsten Jolitz
2013-05-28  9:28     ` Sebastien Vauban
2013-05-28 10:20       ` Thorsten Jolitz [this message]
2013-05-28 11:47         ` [PATCH] org-table-convert-region (was Re: Bug in org-table-convert-region?) Thorsten Jolitz
2013-06-01  5:46           ` 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=87r4gre77o.fsf@gmail.com \
    --to=tjolitz@gmail.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).