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 2OAoANsYdmIfwQAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 08:59:39 +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 cFgKANsYdmIBVQAA9RJhRA (envelope-from ) for ; Sat, 07 May 2022 08:59:39 +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 AA64E1E2DA for ; Sat, 7 May 2022 08:59:38 +0200 (CEST) Received: from localhost ([::1]:52972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnEPh-0004a9-2l for larch@yhetil.org; Sat, 07 May 2022 02:59:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnEOD-0004Zd-Bo for emacs-orgmode@gnu.org; Sat, 07 May 2022 02:58:05 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:42974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnEO9-0005OB-SY for emacs-orgmode@gnu.org; Sat, 07 May 2022 02:58:03 -0400 Received: by mail-wm1-x32c.google.com with SMTP id n126-20020a1c2784000000b0038e8af3e788so5593649wmn.1 for ; Fri, 06 May 2022 23:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=kiYTb8cY6qEhIwtsYfTpeJH7RwW8ocubAGZ0LRmxSBU=; b=H9/wk4im9vtf4ydx093ooITWvyPutz28ONCx7lBYKqbfOarhkrX9Jw0t4BjNSixvGk dvHu7DSYC3VovAb/GsJBVQ0i7ZW0KLsSJi3P35CbuBa4dVsq7HfVaE6bRlN4uhH+acgn n4PvG24GJMehzhpmPXl0KofEpZHI4cu9yAHSTuhNlG4K9RpdXf+aMZTZ00u/Y6S5sPFd Sqgi+0OBMkvyF7zoP4WiCHJ2euAy/yMwAzv9YSixBJkrXbvv/qe8UpSHU+ALvd4bHKxF puUZCmavKnDo2h/iPgWFE+/4Ow9hYPvgkFel0tiki5BlHYt57bijrlL1W+EPObCDZIQx +CJw== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=kiYTb8cY6qEhIwtsYfTpeJH7RwW8ocubAGZ0LRmxSBU=; b=FCKM3XVHrnmW0pB+jSgwM2DKquviAGR6ho2hDUqNHnq7Pbj7HXuHmxK7kHtX7k4Bo/ GWDlyuVylyWdWXPOnMRLOKE4jhPWEM0sjtLGsnId8RG0qjq68kBrrJTyC1LLnQCKQ45a 4dEbkoCXoNOuJ6bToxYQpO8F2cn5uin5fdx80ayy4wTTIq+5DFo3gecrV8O1JbxBeaCG f39wCWjiGBARKRVv3hCfxcjmVXq/mVKqyGl9ZAKo+2hwv9rCq0BuuDQFKwrOiN7jHlgc PDtEDrPTBAQbsECOvfIjVWr74Uv6C+FBWV/ip2X8QOgW58YI+ZtbQnCI5rCmpDin8TMw fbzw== X-Gm-Message-State: AOAM530JKQqSnIKO03gEe3MvlmviO2jwhIQS6jAkQ9+vNInSWnPaGMMI QCl8GSaUe30x8Dsu5qyIzBQEr9tKjDRYaA== X-Google-Smtp-Source: ABdhPJwWxR6uX5l8sgkOtQ0E8IFBnhMHEk5XLe9yRyeYYJLybD1Wvr7cfqLiVzDzd/N7pmNSN+JdSA== X-Received: by 2002:a05:600c:4e87:b0:394:7f2c:2aff with SMTP id f7-20020a05600c4e8700b003947f2c2affmr4206559wmq.172.1651906677943; Fri, 06 May 2022 23:57:57 -0700 (PDT) Received: from Home-Mac ([31.210.177.84]) by smtp.gmail.com with ESMTPSA id l18-20020a1ced12000000b003942a244edcsm5875024wmh.33.2022.05.06.23.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 23:57:57 -0700 (PDT) From: Daniel Fleischer To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Recent changes in org-fold regarding emphasize visibility References: <87a6bxicj9.fsf@localhost> <87ilqiynt1.fsf@localhost> Date: Sat, 07 May 2022 09:57:55 +0300 In-Reply-To: <87ilqiynt1.fsf@localhost> (Ihor Radchenko's message of "Sat, 07 May 2022 12:22:18 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=danflscr@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651906778; 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=kiYTb8cY6qEhIwtsYfTpeJH7RwW8ocubAGZ0LRmxSBU=; b=V+fLELAHkyYb9+U+fxMhCrTc9ZOGRQe3mCYPCsrrfzSCws7/1hpy4PhuQmPJOk57wMQQX3 YPiFqcdNqMkzhok9br2RXF82IfTdQww6udFs8i8U3T275rY/8BQJ9iAwiuTUGyTkonl8mP ScH3dbqidlqmeUC1RdUQ3TY5FBGXhJmkbNVVsuVZJY+tAF4M6QUhGVhQVWNP9tTNoTUq2a eot9Gti7IwPM7QfYKvmKPBUz0rNFANDSYSBIefvrizT8br5HuhOGaPLhFdlrUPLlkOuW1F HoakV4G/Z8aFJM9G/jVuLpiPnEs+tmLIXnF8QO9JjKYlthm0SGI+9ePUSPSE9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651906778; a=rsa-sha256; cv=none; b=auUB23rbet8S7sYUpUAIwJKx/WA26hVgAb9xVwwF9pDhK0d+htvmnHws29jg3QnNQsoshA 5nJ3QwsLgiCJ3szjAqNG63t88O9gLhRXMhPdYX1DltOgFZAaCw9p/78KXAL5oKEX5oPwcm y+J7v/kTn/IComgb4swz3oYjP695Pf3bmdz1jn0qAWV+gU/JP5BZCTLD26r8e1EJ+emH35 ghkIlbHQI4kH9pEXVX/Kcb/fpwx9NvddOzV3fePgwvAzapZ/UxH2N2xsmUvyngQjUmez2m VhfThxFIPjoLq3CAAmBjKYasj7tv67ki0WpE1cjXE+YITDTwqtdssELRevVoSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="H9/wk4im"; 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: -7.80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="H9/wk4im"; 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: AA64E1E2DA X-Spam-Score: -7.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3CcuPLdlW2rW Ihor Radchenko [2022-05-07 Sat 12:22] wrote: > Now, we have different kinds of hidden text at hand: > - folded headlines/lists > - folded drawers > - folded blocks > - folded links/emphasis > > The question is what should be the logical behaviour of Org when editing > text inside or at the border of these hidden text types? How should we > interpret the values of org-catch-invisible-edits (nil error show > show-and-error smart)? Hi Ihor, Not sure we need to reinterpret the settings; roughly they cover the different options of what to do when you edit a hidden text: edit anyways, throw an error, unfold but do nothing, unfold and do what you wanted to do and the only thing I don't have an intuition about is the smart option. BTW, there are no issues when the folding core style is "overlays". So why not follow what happens in that case, even formalize it into tests? Best, -- Daniel Fleischer