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 EAsONh+ql2HenwAAgWs5BA (envelope-from ) for ; Fri, 19 Nov 2021 14:43:59 +0100 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 WEvGMR+ql2FFbgAA1q6Kng (envelope-from ) for ; Fri, 19 Nov 2021 13:43:59 +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 958F3B6E9 for ; Fri, 19 Nov 2021 14:43:59 +0100 (CET) Received: from localhost ([::1]:41508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo4BK-0005Ax-PT for larch@yhetil.org; Fri, 19 Nov 2021 08:43:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo492-0002nK-2P for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 08:41:37 -0500 Received: from [2a00:1450:4864:20::136] (port=43840 helo=mail-lf1-x136.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mo48z-0002st-UG for emacs-orgmode@gnu.org; Fri, 19 Nov 2021 08:41:35 -0500 Received: by mail-lf1-x136.google.com with SMTP id b40so43711579lfv.10 for ; Fri, 19 Nov 2021 05:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=kFfAhDXaZLMNJbGpLUnxqtPLCVQzordIXauQOmFvE8A=; b=fOjBlcqzBLHZlkX/SZ4w/Wk0vVDQ6lapKeFjgqk4T/oQN3UsCVGp+LOm9FiYq4Ba3I EYTzEmdROpP2vWqdhmSu09Dm1S2ZgPJA5Gpe56OS+ArNrYka6U+39Lh3iOGN7UXNEZWn c1zZVtnZ2MjjLAqpR1rRxh+wzl3yrGJ6e/J3BPwBLtkuj/m9ershMsvOZkzc8s6HBoI4 YXOf5ZgQXmrtfOJ9kWK/w6KCWCofLm9EdrelvVPd7hZYpGigRJfXKk2ZI8KLIlxctM7O P2RGKkp4PCtSbMORaYm+dceQfo4/NFG7Vj2mAiJAZ7bCssFYetFsKnraKYB/LlxDMBKI Xxkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=kFfAhDXaZLMNJbGpLUnxqtPLCVQzordIXauQOmFvE8A=; b=2xrbZMgkOuoYrgzo5MPwOSIPGQUPy4fvmg8oT+YhhASZrnsgVm5z0eXRGJtu7/NHfj ybnePrdig3dJ5oz8MmtN2UiDTvRG3Ez3O8R40zqSO3Dxwqoqg9NBLPWejmilCht3WRKT r594xk5uBJtfyjyLLwJO85+f/wccDJ6Lqq+rf9iAbI1kVMQ9bbwugLPeMpbRML3RWiRY ar91FM0ns4x5/8CIoJ7pRhiD6QbN9rLFxA1R8oysJuWUZNx7h34TQ4SLOd9h6r1TMUqc 0XyYscqC0wzHhMu9saBlSQGN98cNtaTdKuHSpR1NyPWRPad5ATGR6WDIk76OMR53Z8YU cxXQ== X-Gm-Message-State: AOAM532WRb+I7TkPA8mOgHjdwIHPnkmgEzi9sOpDEOf8fUl7nLqVslsl aHr8hSQJh+aRx7AfAOi6nm8= X-Google-Smtp-Source: ABdhPJwaQDbj/7wKc/yPMlOECQ+8UyVz4tRYqiz+WuBI/AM3GeMTPEIJNmYpUB6Fg8MK5ConMIf/wQ== X-Received: by 2002:ac2:4564:: with SMTP id k4mr32651752lfm.380.1637329291486; Fri, 19 Nov 2021 05:41:31 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id j1sm365900lfg.154.2021.11.19.05.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 05:41:31 -0800 (PST) From: Ihor Radchenko To: tony aldon Subject: [BUG] Re: when ellipsis are "removed", org-cycle doesn't work "correctly" on list In-Reply-To: References: Date: Fri, 19 Nov 2021 21:42:56 +0800 Message-ID: <87k0h49s7z.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::136 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=yantar92@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1637329439; 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=kFfAhDXaZLMNJbGpLUnxqtPLCVQzordIXauQOmFvE8A=; b=TbmpFf9jy52sCzt7MVp4fF4eF6fDvNPumRLGHKOg087qyaQ0OYfkzsWHSPIWtK41r3R0oq zXq74AhDyX0XbytC/WarHOp+JrjvjRIXNfFcQvqEbSU1Dg+1e/E6BloGmxFNCYAZslzShX WaLnzeU/VE2XTv3bqfjt3cN9zOPUIDh9Li/WZNxxeLLijEklnbl539aF8J2mUfVJlc7WIV iXPMLrtwCguyZ4nKVetMg7j5jmjpS/WZYXGPEqZ7HiVsqCgZ0okdgJrwXUef3j+waPAUyd SMj8XLZX5K8RSdw1Syuo2FoAyhjGBTsFpdYVi73JGOXp1URk/xtjHj0FTHCAJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637329439; a=rsa-sha256; cv=none; b=hH8tUkQfmpREiO22gwnvcGC9o8TFWOr1Lb3Kr2G3AWwpa1TcOakA7llJ5AReZNdfFC+zny ZQqfefC/bpBC0MZi0KVDAIBtVdEzaFa+ncDflk5ad/LAUR3c/SU+T8skxkd0Abx4Ss+Zfg PvyeBGkUHG0jU0mJ21wmQoNlVG3zMGG03FIBcxwT+mODG6UNwY2gjRfM+fqCWVA289ljaf yzWxnnGMbTQCtiZevoMSaX1qCApqQjMK0n0YCkzhBWYYoMzUpAsn+qHo6X0SFyZAJE/3zj 7MZ1C0Hfh5FbHymuQ8/JqBGmkIpBotnE5hLx9zHwmVjyRh3fjjJIpEwqmruiqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fOjBlcqz; 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: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fOjBlcqz; 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: 958F3B6E9 X-Spam-Score: -3.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: f3FpsEovYECi tony aldon writes: > This is my first communication on this mailing list and I hope I'll do > it well. Thanks for reporting and welcome to the mailing list! > 1) The "bug" (I'm not sure if it is a bug): > > When you modify the `buffer-invisibility-spec` replacing > `'(outline . t)` by `'outline` (in order to remove the `...` when > headlines, list, etc are collapsed) by evaluating the following form: > > (remove-from-invisibility-spec '(outline . t)) > (add-to-invisibility-spec 'outline) > > `org-cycle` stopped working "correctly" on lists. Confirmed Steps to reproduce: 1. emacs -Q 2. M-x org-mode 3. Insert - something - a - b - c - something else 4. M-: (remove-from-invisibility-spec '(outline . t)) 5. M-: (add-to-invisibility-spec '(outline)) 6. Move point to "something" 7. the item is folded but not unfolded 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. Best, Ihor