From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ME/DJu+7n2C1BgAAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 14:17:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IESDIu+7n2ApCAAA1q6Kng (envelope-from ) for ; Sat, 15 May 2021 12:17:51 +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 B910323F4E for ; Sat, 15 May 2021 14:17:50 +0200 (CEST) Received: from localhost ([::1]:51364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhtEr-00020q-BZ for larch@yhetil.org; Sat, 15 May 2021 08:17:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhtDm-00020T-Ns for emacs-orgmode@gnu.org; Sat, 15 May 2021 08:16:42 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhtDl-0005Xz-6P for emacs-orgmode@gnu.org; Sat, 15 May 2021 08:16:42 -0400 Received: by mail-wr1-x42a.google.com with SMTP id x8so1703251wrq.9 for ; Sat, 15 May 2021 05:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=Sa+VHYBHhVl7wT5f8bmszchmzeS3h4q/WhST4VkI7Q0=; b=cEVykg8Tr56DrLWTMWPKctX6fjRBWYbsubK1vgGs1QUDbWxSkXLrQMepDqzUjkPc/b ljYK/lnzBet6qVXS7c98S310aEFeabjcu4SzDxmi7mcIxMrHnt2mXc4LxwfFWe2oM2WA vopFPQ1qSbZIPZvpDOIFM9MJcbLMNEfv21e6qmh8xbSpaYTs/d4Rto3uBf1kuyCOh5W1 D4em15hyKNEv9dnILtLW9sOe5Fdb+YhW01NnkUYmbE/kXvjjsDmqpCPDjDFEiGyXFvgO i4Uyj6WYbbvFh5VBo7n3B0ByRu7b+twTkzuZYWaB6WX9JyqjSuOYG1uQYqg9zrvCF4Q4 O0Og== 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:in-reply-to:references:cc:date :message-id:mime-version; bh=Sa+VHYBHhVl7wT5f8bmszchmzeS3h4q/WhST4VkI7Q0=; b=C/wAszRJvIIhDYiVPGnujLSlcfspKPNp6o8Lm8jnPoMpJ8D5LToQav0xiAvTiAoH2p o6JIbxpOq4+us06ToDgM6Q01r2WP8LRWHqlml9J5UtH1k98Rp1zqTssxUkcU4z2Ozvvy uAZrIFjgt7AZ7K/e2nFhKo1bY8qsr1hSYOtzHORIqNduFy3uy5pdn9y+3scRlwY1yx/c 8aan405l9SSmRk3c4Dt9fbHTRA/lSASKRUZJA0dky+Ynzk5g6uEWxmwHnN+NkRuPf6NL oCjBHYhi68+PFtarmZYb5r3om1kH67cMDU0WqpBSVnTuwWQ0rlNoraIleRVgOZKVZMKb B5UA== X-Gm-Message-State: AOAM530qXQMYZJCFm8yNDV8YtNvMfZx1LcIrpplovrTGr3XhzL2K+hSY niFwPCJhEP+k1zy525JRZRpkrepKuW6vSw== X-Google-Smtp-Source: ABdhPJxNcR7McLyZ48S3xtZZGYZDmPKLg1pudnz9qZDwVPyARHpXgmJZ+QT83o84bQWgE3iR5f3aMQ== X-Received: by 2002:a5d:4fce:: with SMTP id h14mr19108591wrw.239.1621080999806; Sat, 15 May 2021 05:16:39 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id p14sm9139487wrm.70.2021.05.15.05.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 05:16:39 -0700 (PDT) From: Ihor Radchenko To: Nicolas Goaziou Subject: Re: [PATCH] Fix test-org-element/cache In-Reply-To: <87o8dcryoc.fsf@nicolasgoaziou.fr> References: <87wns0jkg5.fsf@localhost> <87o8dcryoc.fsf@nicolasgoaziou.fr> Date: Sat, 15 May 2021 20:21:30 +0800 Message-ID: <87zgwwmblh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=yantar92@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621081070; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Sa+VHYBHhVl7wT5f8bmszchmzeS3h4q/WhST4VkI7Q0=; b=LqAJjpYDclJjSE0qDTkXkqdihJwOkubVTnIta/C+7ehDF4KIceIw8RzWBDBytfgCkBoRSI T2/teLSBcCalImT3pBv0+GPyDm8BXSFXTaG/ihun1dbELBSN/4CRFG/7p0B9X+hBiydbdz m5RX4CUJVDnyNRrIbRE00OzM5NQYscmewNRtXFSADh0u0n3Stgb0G2wHhAITkVILqLSlBI F7alVmBZek/Dyj97nUgvOM42BFsTzjNAMQU7sYkvyh+P78dK+pHwbPRclqwonft6SVjF2k cHJDR37/xAsYLysLIcjvLR0wU0Cg2Y87y84/AKTUaB6mOpQMKm3mHGDosyk7uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621081070; a=rsa-sha256; cv=none; b=ar7mEWEXoYo/YHMOmSwc1jkzS2/2Pm9ZR2Xgj1sxgWKfpHhPmTPqyQ2Ao1vmrzTpiXcpgx F61KJiOtWT9dnBGavsJVCJTQUOOc2vEtl3yBICDoYImlI5ASAlLKnLgASHBcJu5XNW8TLL KDB1yba5rz3HJ0i1yxq0sayhIcFMiCH6sn1LTKNQ63/LRQHLNbDOkywVaK2p3rWT2dJ+ol CkEIqzrAFMfDnGYn7+I9WFjXe7UooBBfrDCm2g9sK5rk//6kxssXV5XJr2yTQhRc1eLob2 /Z5hyXwuY25Irfki2WRjDH7GnucqAznksGaCBkd4Z1F9lzl341klbONDuXnQjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=cEVykg8T; 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-Spam-Score: -2.65 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=cEVykg8T; 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: B910323F4E X-Spam-Score: -2.65 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0L5B7EoYjb38 Nicolas Goaziou writes: > I'm not sure to understand your report, but `org-element-at-point' > should return a `table' element at the very beginning of a table (here > at the beginning of the first row), not a `table-row'. Sorry, I was probably not very clear. The test does the following: 1. Create initial file like: #+begin_center P0 P1 | a | b | | c | d | #+end_center Note that second line of the table is not indented. Now, org-element-at-point returns table-row. 2. Modify the file to test org-element-cache #+begin_center P0 - item P1 | a | b | | c | d | #+end_center Now, the first (indented) row of the table belongs to item. The second row becomes individual table and org-element-at-point returns table. The patch asserted that org-element-at-point still returned a table row. Best, Ihor