From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kExrHHjM21+6MgAA0tVLHw (envelope-from ) for ; Thu, 17 Dec 2020 21:24:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OL4tGHjM219LTwAAbx9fmQ (envelope-from ) for ; Thu, 17 Dec 2020 21:24:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F332A9404D2 for ; Thu, 17 Dec 2020 21:24:07 +0000 (UTC) Received: from localhost ([::1]:52292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kq0ko-0006H1-Ao for larch@yhetil.org; Thu, 17 Dec 2020 16:24:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq0a2-0007vu-DE for emacs-orgmode@gnu.org; Thu, 17 Dec 2020 16:12:58 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:41218) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kq0a0-0003ZD-QE for emacs-orgmode@gnu.org; Thu, 17 Dec 2020 16:12:58 -0500 Received: by mail-qt1-x82d.google.com with SMTP id j26so21035990qtq.8 for ; Thu, 17 Dec 2020 13:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=cZPMsh7wxpUd9lxukefli6jbL40R1RmmGvh5wUgUnzQ=; b=pgstkAXq1BP6R4wWlRoxk/0t7gcPz63pAi8jDnB1LtvuD2reKoTl2jrGBqqvG2SbU5 zQksuXIpInMdONjce9Rgdj+sLiF7j6Cbdfin1GUzUjMgiqOpW4UMNguirMy3RY1wv5GF 82ACDo+c6orchcJKwx8E3CDtrWbCAbFwVjXcslCK+S9AJ9XPFBHzAkyHOAsBqMYP7Bfp gDOFjkosYvdGIJux7t4mqg+8yPnXIKQCMk0ggkIJ/0j/h/slXrYURc6fMkhQrUUra4ko 0o4hwtAKQPg4qM18H+URmk7JTggXihzgBx0LJv5xwwvuQTcUEkx5mvaj6CcJwqQEA0By ex+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=cZPMsh7wxpUd9lxukefli6jbL40R1RmmGvh5wUgUnzQ=; b=Sl0kPYE5E6XbZpkCcpRiPhv7yPfis74eUucJeof+4gZGkFSRzKGJ0kp4f9KjM3NiBK tjFMLGoxeUYS/IJ/uo7lvr43X8gmTwxcvKud1bPWHRCWr1A8jwE3Oldq7HWFGRlGosKl baCX/iaQeJrWXDm4zryMsiHgDaeTz6p6WF3XoeG5Fumnp4NGeWd9q6EF44S6G+3ELz/P DGKrlTpVWcT/LjmkzmRjIq0sQ/jxhTe+bkajgB8dkPzmcH+cTqW/TcTERttDqWrDQ9Vp jsZBGvGI9z6HhMuKWgK0GKVOqA9SKd1V4aakVgnHpc2kAqL3yBw9L3pB0OeAGAPINcus tUPg== X-Gm-Message-State: AOAM530XOuoHgPBKgvg0yZ8qNUoNzKh4/RyK7/icW+g//W2GfmDApqiU jNpJ1QBSB0b7YsGgV6ypmCvshep8ge0= X-Google-Smtp-Source: ABdhPJzu3My8oy0+fXbR+u2yYY0SGu4wEXvD8DtGSja11bgXy61o/qqROR3SaOdCbEdAgvdn5xGYGg== X-Received: by 2002:ac8:505:: with SMTP id u5mr735167qtg.25.1608239574325; Thu, 17 Dec 2020 13:12:54 -0800 (PST) Received: from pierrot.dokosmarshall.org (pool-74-104-144-62.bstnma.fios.verizon.net. [74.104.144.62]) by smtp.gmail.com with ESMTPSA id c14sm3687747qtc.90.2020.12.17.13.12.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 13:12:53 -0800 (PST) From: Nick Dokos X-Google-Original-From: Nick Dokos To: emacs-orgmode@gnu.org Subject: Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)] Date: Thu, 17 Dec 2020 16:12:48 -0500 Message-ID: <87k0tgt9v3.fsf@pierrot.dokosmarshall.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=ndokos@gmail.com; helo=mail-qt1-x82d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=pgstkAXq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: F332A9404D2 X-Spam-Score: -3.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: g4jNBZXKSl9n Consider an Org mode file with a table.el table (which I made by first constructing an Org mode table and then usind `C-c ~' to convert it): --8<---------------cut here---------------start------------->8--- * table.el table +----+----+----+ | a | b | c | +----+----+----+ | 1 | 2 | 3 | +----+----+----+ | 4 | 5 | 6 | +----+----+----+ | 7 | 8 | 9 | +----+----+----+ | 10 | 11 | 12 | +----+----+----+ --8<---------------cut here---------------end--------------->8--- Trying to export to LaTeX produces pretty mangled output. It turns out that when in `org-latex-table', (org-element-property :type table) returns `org', so it thinks it's an Org mode table and calls `org-latex--org-table' to process it, producing output like this: --8<---------------cut here---------------start------------->8--- \sout{----}----\sout{----} \begin{center} \begin{tabular}{lll} a & b & c\\ \end{tabular} \end{center} \sout{----}----\sout{----} \begin{center} \begin{tabular}{rrr} 1 & 2 & 3\\ \end{tabular} \end{center} \sout{----}----\sout{----} ... \begin{center} \begin{tabular}{rrr} 10 & 11 & 12\\ \end{tabular} \end{center} \sout{----}----\sout{----} --8<---------------cut here---------------end--------------->8--- Evaluating `(org-element-at-point)' returns `(paragraph ...)' all along the top line and `(table (.... :type org ....))' when the cursor is at the beginning of the `a b c' line. Emacs : GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.13, cairo version 1.16.0) of 2020-10-30 Package: Org mode version 9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/) -- Nick