From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] Fix error prone babel table output format detection Date: Thu, 01 May 2014 09:08:50 +0200 Message-ID: <8761lqrn5p.fsf@Rainer.invalid> References: <20140501065231.5AE63181A42@treetowl.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfl7J-00051h-Fc for emacs-orgmode@gnu.org; Thu, 01 May 2014 03:09:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfl7B-0002iT-UQ for emacs-orgmode@gnu.org; Thu, 01 May 2014 03:09:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:33988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfl7B-0002iE-Nn for emacs-orgmode@gnu.org; Thu, 01 May 2014 03:09:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wfl77-0003zD-RV for emacs-orgmode@gnu.org; Thu, 01 May 2014 09:09:01 +0200 Received: from pd9eb2d32.dip0.t-ipconnect.de ([217.235.45.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2014 09:09:01 +0200 Received: from Stromeko by pd9eb2d32.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2014 09:09:01 +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 Ian Kelling writes: > org-babel table output uses different formatting for a list of lists, > but detects it incorrectly causing an error, as in this example: > #+begin_src emacs-lisp > '((1) 2) > #+end_src So this isn't a proper table, what do you expect to happen? > - (and (listp (car result)) > - (listp (cdr (car result))))) > + (cl-every 'listp result)) This is wrong, because a table can come with any number of 'hline symbols, so ostensibly not every element will be a listp. Besides, you can't use cl-every unless Org drops backwards compatibility with older Emacsen or mandates cl-lib to be present. Even then, you'd also need to require cl-extra. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada