From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2JlkMwQB7WINXAEAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 13:37:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CBdAMgQB7WJPDQAAG6o9tA (envelope-from ) for ; Fri, 05 Aug 2022 13:37:40 +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 73C9EE838 for ; Fri, 5 Aug 2022 13:37:40 +0200 (CEST) Received: from localhost ([::1]:42542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJve7-0002ZB-Io for larch@yhetil.org; Fri, 05 Aug 2022 07:37:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJvce-0002YP-4X for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:36:08 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:39651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJvcc-0005L3-Mi for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:36:07 -0400 Received: by mail-pj1-x102d.google.com with SMTP id h21-20020a17090aa89500b001f31a61b91dso8010605pjq.4 for ; Fri, 05 Aug 2022 04:36:06 -0700 (PDT) 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=nWHRa88YXnbZn+3OCI0eYooI8t25Mwm43Do64w22l0o=; b=A73aiQFolwHSKTQeZ73xNpllSiBWy3ORN7EvCGo4akkGI2J0Tk974cGfHhgFtj+U2D sv9572zbbXqLCTiI/q5S1o9GOyIXO6dkS6uhtgdE/zoET/mIyop5R7pTfx460phoVsxj pmfhEvIUn4JY2pvD3dda6R1WSk3xavWKazZI32FXVGTyjkW88+t4DnbLUADD1ae3ESrZ fRRqbaEUYXtuktIVjXH/qWU1g5KFXXHLRUW2RX90Fz0rHExRI7B5IGxmx0xgHq7fR2cB mvNchROFMZmIK+a4gu/1Hd/C4GPFQSi889Cpz2rDG8jq6GqcTrniwTjI81Z85ntfsk+Z wR6w== 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=nWHRa88YXnbZn+3OCI0eYooI8t25Mwm43Do64w22l0o=; b=hHEfRzxrxehJvrSgXF4rIIgfAUtQsk/X/JEXNXPyBoexYmOqr4zkrER/ow2zZ1wDwl 1Mmu0J6OeYSkwm1fZilNGYkktHN16OcxYSCKiElWyZFgZNLqgNdi3QoMcYHxGzzCuSWz d07f/TQtiyMreXsb+iXLdK3/DSTOsqwkwE/SjVCPUefz1y9ddlqMqOruC5t6obWLfNq7 x607MKuRXiT4LmvLzZ+08+VsDiRZ9P0iJf0vZs78KDip6LIW4MYDXk87+WYQdgGQm+ZQ P949SisyOFGDFBWOcrDm0iGyZWt0LiJMMevnoAK5JTLtLX0bUOMIHyAuQMZuHXKmZboa 6E9A== X-Gm-Message-State: ACgBeo12ah6xsCulK8eS3R7iEuCBGWJK4JxFR2bsJqYKXPwnqmBWjpEO qHjTGuS5qI7ff5LK017132U= X-Google-Smtp-Source: AA6agR5RvxC+GaQPYOLkb7zKst0+XngS7znHC6azWcTdhMGFNPK5n9EDcQSRYGYo77OC7AZN+uMZcw== X-Received: by 2002:a17:903:31c9:b0:16c:3024:69c4 with SMTP id v9-20020a17090331c900b0016c302469c4mr6419174ple.81.1659699365374; Fri, 05 Aug 2022 04:36:05 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id u8-20020a1709026e0800b0016c4147e48asm2732082plk.219.2022.08.05.04.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 04:36:04 -0700 (PDT) From: Ihor Radchenko To: "Fraga, Eric" Cc: Emacs Org mode mailing list Subject: Re: folding problems In-Reply-To: <87k07nav92.fsf@ucl.ac.uk> References: <87sfmci1kw.fsf@ucl.ac.uk> <871qtwqdqk.fsf@localhost> <87fsichwo0.fsf@ucl.ac.uk> <87edxvpinx.fsf@localhost> <87k07nav92.fsf@ucl.ac.uk> Date: Fri, 05 Aug 2022 19:37:10 +0800 Message-ID: <87k07mora1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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=1659699460; 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=nWHRa88YXnbZn+3OCI0eYooI8t25Mwm43Do64w22l0o=; b=TMVodA9Me/m4JnsvnoyMRa+HHvTfzbMTHrfO+SNIQsvOBIA6NL0+LwEMG0jin4QZCDwJTU cBjrbe1ipAhf86LlG80B8xg5lG3RPZnuG6TBOBc2jOIGfIhM+0/dTxA2O8493lgDNrvioA lXBeiK80maeZK/DzRks8FRGHzVw62+nklrEGtVwxDxM+QtqHZw3xGV7VzzOZTjI8Kg31Mk MzMG5hLnc0xK3fU4/s8C82+0kFpVePrjz5+SkefWJmTSqGhwtyyOXkQAncLunKIxVflocS mxELt9kAyTWtbQpVd7RmcOdJA0/uLtTkUXvt6VbXAtuOlOtav+sWozAMxeTxxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659699460; a=rsa-sha256; cv=none; b=XSZPtjPOBvgqQys4z70nTHnuOsobZ5X0hlctv91sDtnsQCqHo9xORuwc9/zWdbmMOOME3T zbQVzidiMkMYJRExIb3R9mCjWmFaapWScNpQJhDjm7jKSva3Eojrmgt6/tAjs7Pgj+hcwt DUeN+j2+2O9exytWtPY74xvkPnbcB6e9UG+GO1jRjhxsarySFp27Y4cONXpLA+zgF/t6B2 OVZTDrjQfKQCxlxaUjL4htqZU1/+ehkmybx3G4d+r3PZ7vpKrknpwVMO771r51E0K6zi7t uK7+BVfJGu3L2RNNAX6lw7hKuUgZQSrcrK7v1CpBoJ65CHB+rhlB5ucd09kPUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=A73aiQFo; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=A73aiQFo; 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: 73C9EE838 X-Spam-Score: -3.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: mJu9xRdrxo4+ "Fraga, Eric" writes: > On Friday, 5 Aug 2022 at 09:45, Ihor Radchenko wrote: >> If you have some time, can you try the attached patch? > > I have tried it but it doesn't seem to solve the issue of multiple > responses required due to "unsafe" dir local variables unfortunately. > > I may remove that particular setting and do what I am doing slightly > differently or maybe just record it as being safe... But, for the > record, the dir local setting is: > > ((org-mode . ((org-babel-pre-tangle-hook > . (esf/update-julia-project-toml-version save-buffer))))) Thanks for providing an example! I was able to reproduce, and I have to say that fixing this is getting into fragile terrain. I'm afraid that early loading of local variables is too tricky to implement. It should better be done on Emacs side as an option. Hence, I have reverted the problematic commit in 1449bb31e. Thanks for the heads-up and the patience! Best, Ihor