From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4G3yCmQe32W3FAAA62LTzQ:P1 (envelope-from ) for ; Wed, 28 Feb 2024 12:52:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4G3yCmQe32W3FAAA62LTzQ (envelope-from ) for ; Wed, 28 Feb 2024 12:52:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j0+UBRyD; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709121123; 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=1rsHNEhLeekcbJZVvr0M5IcHAlkyJi8o+xtL6/MuOTo=; b=khASClW0Wmeqspt5eKX9N3iBeR7GthUdgcXdx6llhaJykrxsuMBskiNa0ElkQoOWHfCR87 OXwXuc3ZcxAG6hedVgHEF8fbu8OkiMLISAheI9diGt1EgpCiMq+d24SoiXZx32uFvmf0kU kHw0VCOxChSqNa1IYVrpycxiJsi3ykmp267yVwe9OnyEpR+hCqUIz7jee1pmbQvUmMtGXG 2PCSITvCIAYnAU4jE2oW0tPbNcmVHRj0no4al+1R+I2lFrVstjqZx7XvhfUuylNr3rcSCE 9dRT5aPC9To7BkmgLnyzZ2Z8k3BnsWEsuw3p6bh02W/sR+eXtAUr16vTGPhE2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=j0+UBRyD; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709121123; a=rsa-sha256; cv=none; b=kZeNN+zaTz7C5x/W/VgY9oBByO0eHD34ti2D4vsbrWHMFb5cCepsx29/1NF/oysFEbidDY Stza7HOvea4tYppEZeLhS7u5SaS2jnEnJi8FsBUsjyWD55ME4WtMXS4YtdVIb3q4cZayAW 2HvWOGIP+MXkSUuvfTTdp6wK9AHMoEbn/Bgl0ASdT6R3gAJJ8JDszyCMLodtL1x98gvnv9 eSPzi9yC9MHR6hEJZTnJzU8goVfkHC8D4wDax9cFdd7RwY21megkttA46H+PPIAc1VInrS QFcDumDqQFXJRS4ags6PuMxkjLD/M6a6Yf9pbYG/X4AflxFcTDS1nrN8C7xUpQ== 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 E7FF65743F for ; Wed, 28 Feb 2024 12:52:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfISn-0001nu-QK; Wed, 28 Feb 2024 06:51:05 -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 1rfISl-0001nV-4i for emacs-orgmode@gnu.org; Wed, 28 Feb 2024 06:51:03 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfISe-0004a7-TF for emacs-orgmode@gnu.org; Wed, 28 Feb 2024 06:51:02 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F19DD240101 for ; Wed, 28 Feb 2024 12:50:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709121055; bh=sfhh5vhGuTgWlJtw0cnNPvwtKSWmRRbkuiZnYOM1NhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=j0+UBRyDU15dy7/JhjtcaAhWjNWKtemXLV1RROujWQBdHShZjMPu2RbJIC2ZCSzgm H0y6pnjiqGA05Xgm9iEY7btxongBKmPY0cecNThgAFU0hDsFu71yOF638T1JN6t7xA 2pZeN7ZszUC2NrkUalrHBbss6lPwgP0JTW3/k+9C5vJDxqTLdqh1QCosMGGpUV0JyR wpdmwVt/cRu9CXxGE5w5V7ZjMuc+i0O7mcrNyhz3GT4tu38aYTdd1ZlpOK9tScSghN MEjTC+AohXRKqFk66+HWdutVhnzCN8ng4mamUaOAj2W5qswY8EZ2QkAqJhea6WGICN U3EPVgXSe5axg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TlCNY4Lz3z6tn4; Wed, 28 Feb 2024 12:50:53 +0100 (CET) From: Ihor Radchenko To: gerard.vermeulen@posteo.net Cc: Emacs orgmode , emacs-orgmode-bounces+gerard.vermeulen=posteo.net@gnu.org Subject: Re: [PATCH] org-babel-demarcate-block: split using element API In-Reply-To: <529eafb5a5274fb4e15917ce3b97d785@posteo.net> References: <7e41f9b6e9026a404e256f33371e974c@posteo.net> <261356c53e857e0bc4b04f884366edfa@posteo.net> <87bk9uy31w.fsf@localhost> <680e4a4fccf4f3c5c8f51d8215257eff@posteo.net> <87a5p9uute.fsf@localhost> <87wmscrty4.fsf@localhost> <2c82fa1399ddaa52ebe5bb21e241fb5f@posteo.net> <87o7dll7vn.fsf@localhost> <874je4hjmr.fsf@localhost> <87frxmtasr.fsf@localhost> <87h6hzi9cy.fsf@localhost> <067f694028817e59ee3d0c49dc80dd3b@posteo.net> <87y1b8loop.fsf@localhost> <529eafb5a5274fb4e15917ce3b97d785@posteo.net> Date: Wed, 28 Feb 2024 11:54:46 +0000 Message-ID: <87wmqo3it5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.22 X-Spam-Score: -7.22 X-Migadu-Queue-Id: E7FF65743F X-Migadu-Scanner: mx13.migadu.com X-TUID: R6meChd83qNh gerard.vermeulen@posteo.net writes: >> You may wrap `org-indent-block' into `condition-case' to catch >> user-errors. > > The caveat is not a real constraint, since Org has limited support for > source block editing in an Org mode buffer when an > `org-babel-edit-prep:' function signals an user-error. > > I show that in the attached no-user-errors-in-edit-prep.org. I studied the existing Org handling of various errors related to src edit buffers and it seems that we tend to ignore them in a number of scenarios. In particular, when major mode fails to load for any reason, Org mode does not even throw an error, but simply displays a warning. So, I think that we can similarly ignore errors in edit-prep function, demoting them to messages. (In addition, it does not look like electric-indent-mode triggered in your example file by pressing handles errors gracefully either - yet another reason not to throw errors in `org-indent-*' functions) Does it make sense? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at