From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Bug in org-table-convert-region? Date: Tue, 28 May 2013 12:20:43 +0200 Message-ID: <87r4gre77o.fsf@gmail.com> References: <87vc64vxjy.fsf@gmail.com> <8638t7she1.fsf@somewhere.org> <87vc63easa.fsf@gmail.com> <86txlnqwqz.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH1b-00050L-ND for emacs-orgmode@gnu.org; Tue, 28 May 2013 06:21:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhH1V-0006Br-Ug for emacs-orgmode@gnu.org; Tue, 28 May 2013 06:21:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:45491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH1V-0006Bk-8e for emacs-orgmode@gnu.org; Tue, 28 May 2013 06:20:57 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UhH1T-00044j-KU for emacs-orgmode@gnu.org; Tue, 28 May 2013 12:20:55 +0200 Received: from g231106097.adsl.alicedsl.de ([92.231.106.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 May 2013 12:20:55 +0200 Received: from tjolitz by g231106097.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 May 2013 12:20:55 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Sebastien Vauban" 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