From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [PATCH] org-html.el: Fix export of table.el tables. Date: Tue, 26 Apr 2011 19:19:03 +0530 Message-ID: <81tydljf74.fsf@gmail.com> References: <81hb9nclv4.fsf@gmail.com> <87hb9lqija.fsf@univ-nantes.fr> <87d3k9qif8.fsf@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEido-0006r9-Pw for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 09:49:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEidj-0000Dy-Kw for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 09:49:24 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:61012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEidj-0000Dr-DJ for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 09:49:19 -0400 Received: by pzk4 with SMTP id 4so397502pzk.0 for ; Tue, 26 Apr 2011 06:49:18 -0700 (PDT) In-Reply-To: <87d3k9qif8.fsf@univ-nantes.fr> (Manuel Giraud's message of "Tue, 26 Apr 2011 14:57:31 +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: Manuel Giraud Cc: emacs-orgmode@gnu.org Manuel Giraud writes: > Manuel Giraud writes: > >> But AFAIU, with org-export-prefer-native-exporter-for-tables to nil, >> simple table stays in HTML, no? > ^^^^ > simple Our understanding matches. For the sake of clarity, here it is: For simple tables, 1. org-export-prefer-native-exporter-for-tables => Non-nil => Use the HTML code generator in table.el => HTML *source code* has Lots of   2. org-export-prefer-native-exporter-for-tables => nil => Use Org's own code generator => HTML *source code* is easy to look at. If I consult my patch, I see that the outputs I have included for the simple table.el table (with both the on/off options for org-export-prefer-native-exporter-for-tables) is consistent with what is set forth in the previous paragraph. May be you are exporting a different table.el table? Can you post your example? With point within a simple table.el-table, the elisp form down below should eval to false. Is it any different in your setting? #+begin_src emacs-lisp (let* ((dim (table-query-dimension)) (c (nth 4 dim)) (r (nth 5 dim)) (cells (nth 6 dim))) (not (= (* c r) cells))) #+end_src It is possible that I have misunderstood how table-query-dimension API works ... Footnotes: [1] http://patchwork.newartisans.com/patch/764/ Tip: Search for post-patch, Table.el Table with no Spanning, org-export-prefer-native-exporter-for-tables Jambunathan K.