From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 4H0XNXlR02VygQAAqHPOHw:P1 (envelope-from ) for ; Mon, 19 Feb 2024 14:02:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4H0XNXlR02VygQAAqHPOHw (envelope-from ) for ; Mon, 19 Feb 2024 14:02:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a6Diji4p; 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=1708347769; 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: 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=ddeo8WG3+myn8UIgZqK745mpRaZo1u2WQ5/Tg1JDnDc=; b=linZt/DjENEWx7npA2d4JTZSeHx57rnrzjg2LNC21pj/V2NG6og+Z1WJCSwt4uVnAj6NkS SKxaWNbORl4+pngrHrTvILuJNOP4lrQWR8u/Kf/gJl5NrSlHNRB4OWAEU93almfvMlDh9C SrqqwklbkPGs0Bsh4k4hBlQcdxP7YoaGH7Z/AOUys8fpgEknk11CpiI1HriJ+/uwGQj0TK p94gyx7rTF2mUfBVf7tTb29CqBgCyMXvKL6PED2zzBGk14KV6KhPnyV7XJgZ5YdFnX65Rc 1TXOvwxUGExZH2F3f4fv1TuHHhkWphp3voP1GrsxySdmZdejAWwaM4RaF2E+DA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=a6Diji4p; 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=1708347769; a=rsa-sha256; cv=none; b=SZRpCaD5dR7XWyzveP6ESLjzgklBnz7b11JzhNQO8cmMws9R1nRl/0cjYPRJAx7g2r69wh IztfGPqWWg6ntmrrV3fSW800Pt0ud8EKf/nXOyrTaf77BexyYPdDM2gGw+y93Ap8X/KbFN amUDPaVDBAlltlKVfPF8p+oHgfSu4mQhyw2thBdBNN2Ze/1f6B3RJDQnP3qH+dx7CQw0Zc ESURGyl4Rr2y7RR/yutxQXyEfromJALpcXq1TB2j7Xgij6fkr5MutVFGH6OvDEn4HglmNP O4QQw/o7diE0sqWXp9pvhOSTRMsRDGls0xPz7RECUllJ4yaIxn3MNGxD5MqvKA== 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 8712110EE0 for ; Mon, 19 Feb 2024 14:02:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc3HW-0004ip-GV; Mon, 19 Feb 2024 08:02:03 -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 1rc3H7-0004bn-9z for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 08:01:46 -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 1rc3H3-0001dF-Rf for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 08:01:37 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A2B69240028 for ; Mon, 19 Feb 2024 14:01:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708347689; bh=ay2iDt2SU4yAy+QAPQrVwIIbf2gOP51K4i6wXbrToBo=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Cc:Subject:Message-ID:From; b=a6Diji4puynpXRPKNH6IzbSNJ3yEwEvBDTcSfvPPL6QocQXdwnmkxCziR7k9NQuBz a4ibhTiedaL9t8HvtLHRBX7lkyl6GzFgEgZXXFXY5mvIYYvUAfBi/aiI8EYPmtIR06 uE8GG1EupwyjpL5KSzcNHqWf12ak5dPyzIMRR/PccEWVq8jdSYrzVJvdnyS4oHkawe 3/EHO6Ph4iagkXCToolSTIG7ERk1lZON/2fvBh/rDXrq1LMGzOSJvgJu7FXZXI6q88 gFHuqRT7wS0tmzbjvy58k9DRUTXHqKa3Cbfsjs/Pq000yf1nlXCi/F3wmdA+IEJSN1 pqrAfRCfFnJmQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TdjN85vHQz9rxB; Mon, 19 Feb 2024 14:01:28 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 19 Feb 2024 13:01:28 +0000 From: gerard.vermeulen@posteo.net To: Ihor Radchenko 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: <874je4hjmr.fsf@localhost> References: <7e41f9b6e9026a404e256f33371e974c@posteo.net> <87zfxo3taa.fsf@localhost> <87v88a78qd.fsf@localhost> <7f23ea966f0f0aad3fad29b0b96864f3@posteo.net> <87y1d55fc6.fsf@localhost> <37fdcc4bfcf734c2e5ec439d40b4f7d8@posteo.net> <878r50yqmo.fsf@localhost> <442006329cfba666710c989aece5191a@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> Message-ID: Received-SPF: pass client-ip=185.67.36.65; envelope-from=gerard.vermeulen@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, RCVD_IN_MSPIKE_H3=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.27 X-Spam-Score: -7.27 X-Migadu-Queue-Id: 8712110EE0 X-Migadu-Scanner: mx13.migadu.com X-TUID: RFSMw1AKRZg0 On 19.02.2024 10:46, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> gerard.vermeulen@posteo.net writes: >> >>>> I think that I have improved my region marking code by using >>>> "" >>>> in the temp-text as a start. Then, I only have to find where to set >>>> mark, >>>> and eventually exchange point and mark. >> >> Still failing on my side (when running tests non-interactively from >> command line). To fix the problem, please use the approach from >> `test-org-list/indent-item': >> >> (transient-mark-mode 1) >> (push-mark (point) t t) >> >> Instead of (set-mark-command nil) > > Gerard, may I know if you had a chance to look into my comments? I think that I have addressed this particular comment. However, I am confused by your comments concerning this example #+begin_src emacs-lisp '(1 2 3) '(1 2 3) #+end_src since it breaks my patch as well as main in the sense that such examples can generate three blocks with invalid code. I think there is in general no way to protect a user against bad selections for splitting by demarcation. Secondly, I see (saw) sometimes Org emitting warnings with backtraces starting from my patch. I think the warning may be due either to a mistake on my side or a bug in Org, but I am not sure. Regards -- Gerard