From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 2P7HOJg6mGNUVQEAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 09:40:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uOa+OJg6mGMSFAEAauVa8A (envelope-from ) for ; Tue, 13 Dec 2022 09:40:56 +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 64ED2836F for ; Tue, 13 Dec 2022 09:40:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p50pe-0001xd-7T; Tue, 13 Dec 2022 03:40:10 -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 1p50pa-0001xI-RR for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 03:40:06 -0500 Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p50pY-0006UJ-8Z for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 03:40:06 -0500 Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id BD58F624C3; Tue, 13 Dec 2022 09:39:56 +0100 (CET) Received: from zmtaauth03.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPS id 4864780126; Tue, 13 Dec 2022 09:37:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id 3241680127; Tue, 13 Dec 2022 09:37:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr 3241680127 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1670920654; bh=bfWTIzeFO6scbCnqn31kPl+a3ge7IlfUGQCodRCjcqY=; h=MIME-Version:Message-ID:Date:From:To; b=xbi4lh3rxfKxqraCGWYNT22ULq9htrnyudDojtMnesDOufto26gpdi/IfzRRqX6Ht GTBBgX73xsrTnjWdfsDu+3IBoWtYMgFzTretGJKQUszLxVGg03VcDZ9GhG5JZOd874 xEnPzAqTiwNaKBsPE4srGLgtPiaVE2DjkrEABbZ7PrDN6P67uMTIiJDtjFH+ejl73X ligZ0LysCkIfhegOqnByEROzSz8FdhMTIyU4l+RzdTVfpZK0yb6OTcVsNjxP5Wc4wS mBJXDlI9I5JizhaXYfx/q8zCfIxT6wfneR3iGuPNpR0EKopBN596UmY8v8b6Wpa9wq vSps1XMe/9AQQ== Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dBPd1rcUoYwm; Tue, 13 Dec 2022 09:37:34 +0100 (CET) Received: from 130.79.11.24 (unknown [194.254.241.249]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id E364980126; Tue, 13 Dec 2022 09:37:33 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25496.14797.512207.593382@gargle.gargle.HOWL> Date: Tue, 13 Dec 2022 09:37:33 +0100 From: Alain.Cochard@unistra.fr To: Ihor Radchenko Cc: Alain.Cochard@unistra.fr, Org Mode List Subject: Re: [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: <871qp3g3gq.fsf@localhost> References: <25472.37887.71738.229098@gargle.gargle.HOWL> <87fse79vde.fsf@localhost> <25495.8102.609172.522785@gargle.gargle.HOWL> <871qp3g3gq.fsf@localhost> X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Virus-Scanned: clamav-milter 0.103.6 at clamav04 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepgggtgffkfffhvfevufgjfhforhesthhqredtredtudenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnheptdevffdtuefhieefveegjefhffffffdtuddvgeefuddugffhtefgueffvdfhffegnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopedufedtrdejledruddurddvgedpmhgrihhlfhhrohhmpeetlhgrihhnrdevohgthhgrrhgusehunhhishhtrhgrrdhfrhdpnhgspghrtghpthhtohepfedprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhgpdhrtghpthhtoheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrpdhrtghpthhtohephigrnhhtrghrledvsehpohhsthgvohdrnhgvth Received-SPF: pass client-ip=194.254.240.33; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 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, NICE_REPLY_A=-0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H2=-0.001, 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: , Reply-To: alain.cochard@unistra.fr 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=1670920856; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bfWTIzeFO6scbCnqn31kPl+a3ge7IlfUGQCodRCjcqY=; b=bP8Z0Vig88wGHj/4nRlRwPtLBedYwdnTbOe9lViuvcH6B2Eb+R9mbLvHnKQRgTsS/zO37A uGiY13nPYZ+SYItbOvgvj2CssQ/OE7ZhSvK42gg7UCRkgM2dYlcAMaf4sE/QRFwxNr4UaC RAoRnkU6sHuK1Dn4PWDvl3lGfswFdnwPBaENmb4AC0MqRpgEBe6dep0e/DbW3QOB5CznBY GJ1cUSDXfKeuofz0c8LhrnVbQ8yVxT9wS5a13Y0xhSdyw0jaB93q8yjNswf+4Cas4Xn1AM b44Dvn1dT/5StBCBvoPYI27GzCTRBp7RzJVl7UUWYg0iQ1WL6giz09SxsYAHdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=xbi4lh3r; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670920856; a=rsa-sha256; cv=none; b=OZSzQvjqEigfRrww227gDxmccrF1j8cvKvnHYPISMwp970UJeYLPKJLSeR4uqEyMOptT33 RDvMIgige1vmC1vU9PIV2SQaaT0/ei5ms+Z7riwApQ7KwPS4V/6kl6fYVq+e1ceRvTD9zs W7mLL0O6sxjZCJlRei95sj/jtD1BRgQ4491fljjRCkmRF1lYpaHLpAvAi8Pi5ztb0qorSl O+nPRTL+Yrqoxp6QEfVSuvDpisJoNa2WRunm2jyco8zUh71q89OZbjZECS/6j0RU1jBR6f F5YhgHONlluo0eq9x5nhqlEktLu33FfE37xYR6629ij+xk6fVe/U04Oxh2L3ew== X-Migadu-Spam-Score: -8.10 X-Spam-Score: -8.10 X-Migadu-Queue-Id: 64ED2836F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=xbi4lh3r; 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=none X-TUID: hFn1+Dbj4zPE Ihor Radchenko writes on Tue 13 Dec 2022 07:36: > Alain.Cochard@unistra.fr writes: >=20 > > 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 > > \\{\\}"". =20 >=20 > 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. Indeed, it does not make sense, but I realized it only when I fully understood the behavior. If one experiments, customizing several variables in row, it will take time to identify the origin of the message. Specifying in the documentation of the Customize buffer (=3Dcustomize docstring=3F) that = the value of this variables has to be greater than or equal to 1 will certainly help; also having as the error message, instead of the current one, would be even better (perhaps that is what you call a "guard"). --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]