From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ONKQAL0rmGOhDQAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 08:37:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oCaOAL0rmGOrwQAA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 08:37:33 +0100 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 795AC2AB9F for ; Tue, 13 Dec 2022 08:37:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4zqW-0002um-Kh; Tue, 13 Dec 2022 02:37:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4zq5-0002fq-68 for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 02:36:35 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4zpw-0005zu-Gl for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 02:36:29 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BABFC240026 for ; Tue, 13 Dec 2022 08:36:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670916982; bh=5IZrFO2tCW6jqgPUKx83C9S7zYYpnfl36USUKp80ETU=; h=From:To:Cc:Subject:Date:From; b=K2ylvd4Fg796EBmL4ngnguCqSml325hiSCupJFWJp6ySEkUtCIEcqBlo/VImfs2Wz ezs+ZigkHqczKewo18LXtKKjieYAtiDuK3MJRXf2l53CEBdLurLGnm0rStX3ifuVV+ t+IjRILk2wyov89t9QGGMdZ1P3XH1TvDds3MFzJhZN6wiDsoLC8YjjlEUN8uKdtFDc bLOZ62vpk3Nq0adPDKO4fD7SBnIqyC40D0vWRj5gHKUnRKxiH+clItKo1hBLiXUYPx yP8lTQqBTciSRVTQUcTHtydw6Cude/I7CpBSFJI0MONi9Bgv3LlTylzsukVkrnbap/ O5snybd51XXrw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NWVft1hVCz6tlh; Tue, 13 Dec 2022 08:36:22 +0100 (CET) From: Ihor Radchenko To: Alain.Cochard@unistra.fr Cc: Org Mode List Subject: [BUG] org-cycle-max-level is broken, especially when using org-element-cache (was: Problem in org-inlinetask-min-level's docstring?) In-Reply-To: <25495.8102.609172.522785@gargle.gargle.HOWL> References: <25472.37887.71738.229098@gargle.gargle.HOWL> <87fse79vde.fsf@localhost> <25495.8102.609172.522785@gargle.gargle.HOWL> Date: Tue, 13 Dec 2022 07:36:21 +0000 Message-ID: <871qp3g3gq.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670917052; 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=ra8JxeSvPaO5ac6OZycgRLt1F9x+YEv4IchGqCYGn50=; b=AtZ9Lzqz9JuMrGEwqmmlVhNJRVtOmYHU+R9Milu5cAWz9rbKS+9quuo3Cf4scR7Y+aCQ6j UpN1hi+FHRQ6einp4zdhcTqc7+PZ4JEbIT6HUikfUu3ZEhr+t+OxynSr0E9LRvmylhs8Y/ j6irfNvxQQ7ClAPcz5eYPihn39d032wpKgf4XQq/zh17CQ/V76CZf76kWsoXJMoNsOfQXQ Ea0ECMIJkI83EY9u3zwTTjyn3TX5y3pw/OIFuLCiBRXCs3YO3+9MkEdcN9w/HENnE85spG JtCtMiSgdbpYi/ZsfmrKl10IvbV2jVGqk3UfPb0+/l76hzE4vF7pFLNkbVTONQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=K2ylvd4F; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670917052; a=rsa-sha256; cv=none; b=s7jUOfi/HnxrHL9bFZw0cFmHUUhJXuZlBVTOaxobiKWPCPs1vNwzC089wL+Y4cHe/Zly0G I+Ob4lM7GSZ6hHJVq8PLYCSCQRWqEWxoxE5jG94V/AfpOUzkY1bJHD2A/uTpIa87UQJz6u y+m1YBLg/bL5jCH6f0tiVYza2AE0z38ihxtNNaBpjlQizOfJDfYQ5cxRMoxCZfr6BGwYEG F3J4ISXtrvbjFioF2kZvWPzw7djC9NywSRa+JKP8Pu7Tas8J1/aLYNqO25Z0JF2iGDvkHi 5WhYJKaZg/fnvovgFtA5iZr/mUQnvjKgZKCTc57TYCidTwK/qrpDAK0W7ZLLsw== X-Migadu-Spam-Score: -9.66 X-Spam-Score: -9.66 X-Migadu-Queue-Id: 795AC2AB9F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=K2ylvd4F; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: VsqKkIxg9Cex Alain.Cochard@unistra.fr writes: > NB: While experimenting, I noticed that, if I customize > org-cycle-max-level to 0, then a on a headline generates the > cryptic "org-match-line: Invalid regexp: "Invalid content of > \\{\\}"". Well. It does not really make much sense to set this variable to 0 or negative values. I guess we can add a guard against such scenarios. Also, this whole thing is broken when cache is active. I will need to look into this further. The current approach with let-binding org-outline-regexp appears to be broken, especially when using element cache. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at