From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QKqSCl3hO2O0bQEAbAwnHQ (envelope-from ) for ; Tue, 04 Oct 2022 09:31:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uDW3Cl3hO2MJJwAA9RJhRA (envelope-from ) for ; Tue, 04 Oct 2022 09:31:41 +0200 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 C653BC3C7 for ; Tue, 4 Oct 2022 09:31:40 +0200 (CEST) Received: from localhost ([::1]:59634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofcOx-0003uG-69 for larch@yhetil.org; Tue, 04 Oct 2022 03:31:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofcLK-0003sQ-8d for emacs-orgmode@gnu.org; Tue, 04 Oct 2022 03:27:54 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:42922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofcLI-0001hH-Gp for emacs-orgmode@gnu.org; Tue, 04 Oct 2022 03:27:53 -0400 Received: by mail-pf1-x42d.google.com with SMTP id q7so4855019pfl.9 for ; Tue, 04 Oct 2022 00:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=gr5kb7nipdLLP/dPn3OKeVdvpCvp9MJ3Lye90CnSdZY=; b=kEBGC0jNIaUZfJ33hC9eyi0B2/NFaO1+e2wKBaJ1jjPLkPChICplHz2a+FYnc32Vxb FTsVD3FuXZzQHYbJdp5eH+sw9g5TzTR9tsuMHLgSmioWaPaeTxZd9AKVyEp1Oa43gdM2 UiMVdX2lDJRFEkU10STr8b5+DGpqDBAue+KjxkQiHKcjCUqm2judqNrGOA9wY2rleeKZ bI5cyzWIX9NCO2F9U4KkIkYeP0wGLpcEeYz88aqL/E7kIlhxbINxKZGER84KxDcrEwYq 110eQVp1q5yvtOSqPJ7NQWtQUOnFUu88OZZ4LtcOPhS0bRvarCt6kKjuOZKFUrz2DDvv YyMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=gr5kb7nipdLLP/dPn3OKeVdvpCvp9MJ3Lye90CnSdZY=; b=XUksS1eympttlm9/83MHIYPzdK1LrJctUXaQpmQonCo28nSFo1p+/EAclXc/6o6fge AwceAn55ILK+7w2KqmLDGJZQWkk/h5uuZwiwlrEP/1nR9XNIB3PyhJwzkfd5gn5o26e0 adgTWTjiaIcZ8m/Fb1fmBfFbXQS+r1BdBZ+TipltwAhYFIzLGQR15rXGpyGSp4FsGHlA rS6bsP9nHikMZ4TBg5E/Wk8NMsqGhLr/PPh7fdGrmMk6s9uancUfdLa3b66i72ZTIznm OqMNyTmmn52clgg9tmRracY5bj+KPUX3BwT33egGxPufqV7OfzauWjERXJAtEAQ0XS35 BVkA== X-Gm-Message-State: ACrzQf3BzsxUsWeZPIz6imFcVi8V0hk7D4O7TIWU71BPy5aUHa1Hjph1 Bh1qNRSeF/hX14978RcTQT6EKNwPyNxaFspEOSI= X-Google-Smtp-Source: AMsMyM6iXnkJ5eVaNzg9evI0j7IguzyDm3Xd33rIxE7T4vOK0q+9EOn9y2Y+7uPntw9bgNvb/BTJew== X-Received: by 2002:a65:560a:0:b0:447:f485:caef with SMTP id l10-20020a65560a000000b00447f485caefmr12414958pgs.161.1664868470395; Tue, 04 Oct 2022 00:27:50 -0700 (PDT) Received: from localhost ([1.83.154.214]) by smtp.gmail.com with ESMTPSA id x6-20020a63f706000000b00429c5270710sm7733234pgh.1.2022.10.04.00.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 00:27:49 -0700 (PDT) From: Ihor Radchenko To: tony aldon Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Re: when ellipsis are "removed", org-cycle doesn't work "correctly" on list In-Reply-To: <87k0h49s7z.fsf@localhost> References: <87k0h49s7z.fsf@localhost> Date: Tue, 04 Oct 2022 15:28:42 +0800 Message-ID: <87edvoujx1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42d.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.29 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664868700; 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=gr5kb7nipdLLP/dPn3OKeVdvpCvp9MJ3Lye90CnSdZY=; b=Fh4knzpkoRfP132RdoR1zMW9+qR5H8B1pUDBy1dtIUTjCXYzVtsiHgQMmH0BdBh556C106 jtfdLBpVII7XlJsU0VcF89Xkf1bDNl0p0f8F3aajCoY7Y71tmZru8GX53paSxVdnZK4G2H +O3ABjp7c2ImYLfV7ExlTxi673HmtivbxjlJJC09nEeTeaUOqNiWbYNJWx3gVhpEa5Egp8 1VvcKK03y4MWmuhfX4dRmnqMBDteOYZ1UgwAOjxbyOvNskLRCvaaUTq6KrgNnsml9fLT5R e9YZor5q1EfGiVEkCnj8kS8WsKnL0iyv1cujd2yieXSYOt8kche3/PxHlOzc3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664868700; a=rsa-sha256; cv=none; b=i9uJf2/Tzb7DriJMtgbL9XUJX0Vc+iTWMslZMPJSZdVDdICGY1dQLkcZdlc6AXv4UPnSYJ /rTug2ajaiG/8CQIVaUfWbFuurnh8+8w1OMdyox7bJv7CXID4tVqD1WP6/ji9ILip8cpgs zVA/qSItD4SuCpseLdxHbIL1kK7eA1rOS/fcibHwVoKXLSM7RCzjKPFS01I304zFFuPcJo xCeP1wyMx75rqOTZIZiUNW34uWFTxNSZWAQl78ZSsq/J/XFRupHN9+8y41THgY6hawDkje ZBAVMIOzR22ALjgs2juHLAJbdoyus+uko23Vgnabl7cRNBm0HFwHDc6LIMHafQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kEBGC0jN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kEBGC0jN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C653BC3C7 X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4TOZ79mV2wME Ihor Radchenko writes: > The bug is triggered by incorrect result of org-list-struct. > In org-list-struct with the above invisibility settings, > current-indentation incorrectly returns 0 on "a", "b", and "c" items. I > suspect Emacs bug. After discussion with Emacs devs [1], I have found where the problem is coming from. `current-indentation' used by Org parser returns the _visible_ indentation and has undefined behaviour when the line is invisible. This undefined behaviour worked in older versions of Emacs, but not newer. Fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9db57aee3e86dc47771840d21a19dc2e21e52299 [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56837 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at