emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug in org-table-convert-region?


From: Thorsten Jolitz
Subject: Re: [O] Bug in org-table-convert-region?
Date: Tue, 28 May 2013 12:20:43 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

"Sebastien Vauban" <address@hidden>
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 via email to

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