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 +PymHfjFV2PkwQAAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 13:18:16 +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 +Bm9HPjFV2NGGgEAG6o9tA (envelope-from ) for ; Tue, 25 Oct 2022 13:18:16 +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 17300110E8 for ; Tue, 25 Oct 2022 13:18:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onHtM-00078O-Rm; Tue, 25 Oct 2022 07:14:44 -0400 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 1onHtJ-00077m-2d for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 07:14:42 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onHtH-0002bj-BH for emacs-orgmode@gnu.org; Tue, 25 Oct 2022 07:14:40 -0400 Received: by mail-wm1-x32d.google.com with SMTP id c7-20020a05600c0ac700b003c6cad86f38so11434689wmr.2 for ; Tue, 25 Oct 2022 04:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NiL5nDANF+D1hYpzr8eqlBk8aDF4AI+mcs7DcezjqNQ=; b=lglfF/nlZP7AcMdoi0RnAENJB4PlfMaIQtqMo0QqJE8dCQSWZPCNIwR3pusjHuRiVh 1Y16gUprt9HVa8SBss0Z8aOzUySDAjHOZJoUpCKHeMYHe2eEc6Sa2QhAq/LnKSAJvriZ SAt0JCRefoeTPDGiED8YZhhuwyB5ZxFgCq6TWvZNofm7OROMwEg1NShvp7IJdxevZt62 Z0tYLoKNTnVF9vLUJZdpq5kRbcd3sPKHZHxv/r1ktNz9kpYlZXpy+KwgOITzxhimzAZI uU8Z9VTNfQhQW34uG80aLXHexoxsiacD1NyQpuMeTyOr8rCpszLhegA6yRJY+XbPQT0K RRng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NiL5nDANF+D1hYpzr8eqlBk8aDF4AI+mcs7DcezjqNQ=; b=msdUtYNpr7VQNbtmnD9SN8Howf2+25u0aZMhY15br8jFEhYI/Ul6NMXdaRsufQ2316 Tc9xVQoU51peKZou+L8x0b6MZXrvdQAK6/D2OJd610f7nifgZDuKqWr6/HN95YmjuIUw Nylwn418Pg1RAcfWPicveXZ0nFnUGDrc1w8ADvULIGjl9w/kic4ssQn2aV1rEvZsY+3V anskBigobhdftZFQ+BvgU6jMU66CTH/1fhDJs4AL5tjfLd+2k9dQpf6DRxJgCzQzHagT N9A1gazLGz4EzFh0iphfMww0G8wrMsQLgY52f+YLRuFelKjN4FPN0lE5dgYjnr1FgKGv 0K0w== X-Gm-Message-State: ACrzQf1WjL+Vd4wRBrjde9iPJd2X9Wl2+8kvpsJiBZ7bBbirwCHGC3s1 GT/5A0FkzdlpEvG+rw5LgOH1G3NiWu9EosTPqX4= X-Google-Smtp-Source: AMsMyM68MPVDHt6KTjOIYSlzMKPFvX1hYTgZOsV/dzYoaQd0ujSA1rQQCm20s/w/NnitsVNJ+2Wl/HN974w9SkR7GO4= X-Received: by 2002:a05:600c:3545:b0:3cc:74b:736a with SMTP id i5-20020a05600c354500b003cc074b736amr10039809wmq.145.1666696476689; Tue, 25 Oct 2022 04:14:36 -0700 (PDT) MIME-Version: 1.0 References: <87sfjcs0i7.fsf@localhost> In-Reply-To: <87sfjcs0i7.fsf@localhost> From: dalanicolai Date: Tue, 25 Oct 2022 13:14:25 +0200 Message-ID: Subject: Re: [BUG] demarcate block splits block even when outside of src-block To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000710aa205ebda0323" Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=dalanicolai@gmail.com; helo=mail-wm1-x32d.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666696696; 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=NiL5nDANF+D1hYpzr8eqlBk8aDF4AI+mcs7DcezjqNQ=; b=NJrle4tWx8iC45Dm4vPZW685MeXAGa4JxWPJpLYqMS2ujoGJ5De4KdMifRojXCHJngXbk3 ZoTZdwKMpTAY4cuaiB5Y8KmOpn/molLCxC9JhjjgCgEZjSQ6k92HE8kgcalYrYAtxnMVaj b5TwwDkBxHPAaqWoRmhL9Nr9Ss3uA4xrPvYfJBU76DRXe6Wnc1e+mDzo6gDlvTUpr5jlJW dH28fxlamb+EVTo/Xfb16kBBwijxM9B6BVlfsTWiLv/Dwxc2PyB35WPdQBXUh0/RKjNm4g cZ3a6elIcwDK77wEHilYowR8F/dg1LTgF7DJb33tjJi3EbEaeF3Oglm/HuTn1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666696696; a=rsa-sha256; cv=none; b=f9uUgZUwZW0GW2Hg7tW1xlbR8q9FHcUDVwPLr/mUhIiL+r6oRyqQc+i/OPRvR7PlrEbut8 8ju/GGQHKwwhenWhVnLp51LiromRjL6MfaIy/IfmYl4tYy7xpLiDYgNpLYqtYy/qgHQ4mG WTBNyd2d44oN0k9qPDvEx4rgfy6b85tR3MNBYTTLqJpdeyYQIFTEQtr10L3+d6HaAICu9h 0iCpquvaISmLUiXim3KlVBUSAAk9nybDxSOo9uLf8ZFnLFX7qgYTUeRBCYcHxkgf9rp98f clbM0VtUK0oSn0LX/qqmCQLXUDEHjnkFHD/bDn/Z8cl6MN/2PqWZBeoqIfBpOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lglfF/nl"; 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: -5.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="lglfF/nl"; 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: 17300110E8 X-Spam-Score: -5.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: yAno3qk41l6v --000000000000710aa205ebda0323 Content-Type: text/plain; charset="UTF-8" Great! Thank you... On Tue, 25 Oct 2022 at 11:41, Ihor Radchenko wrote: > dalanicolai writes: > > > [9.5.4 (release_9.5.4 @ /usr/local/share/emacs/29.0.50/lisp/org/)] > > > > When trying to create a new src-block via `M-x > > org-babel-demarcate-block` immediately after a previous code block (only > > empty lines in between), then the command behaves like when splitting a > > src-block (inserting an #+end_src first, followed by a #+begin_src). > > > > However, as the point is outside of the source block, according to the > > docstring of the command, a new source block should be created. > > > > As a comment, normally when creating a new source block, Emacs prompts > > for the source block type. However, currently, when used as mentioned > > here, the command automatically sets the type (because it tries to > > split). I would say that is convenient behavior, so that effectively > > only the order of the inserted lines should get reversed. > > Thanks for reporting! > Fixed on main. > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cd835dcad87bc5b3855832449188dd007fce115c > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --000000000000710aa205ebda0323 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great! Thank you...

On Tue, 25 Oct 2022 at 11:41, Ihor = Radchenko <yantar92@posteo.net> wrote:
dal= anicolai <dal= anicolai@gmail.com> writes:

>=C2=A0 [9.5.4 (release_9.5.4 @ /usr/local/share/emacs/29.0.50/lisp/org/= )]
>
> When trying to create a new src-block via `M-x
> org-babel-demarcate-block` immediately after a previous code block (on= ly
> empty lines in between), then the command behaves like when splitting = a
> src-block (inserting an #+end_src first, followed by a #+begin_src). >
> However, as the point is outside of the source block, according to the=
> docstring of the command, a new source block should be created.
>
> As a comment, normally when creating a new source block, Emacs prompts=
> for the source block type. However, currently, when used as mentioned<= br> > here, the command automatically sets the type (because it tries to
> split). I would say that is convenient behavior, so that effectively > only the order of the inserted lines should get reversed.

Thanks for reporting!
Fixed on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Dcd= 835dcad87bc5b3855832449188dd007fce115c

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--000000000000710aa205ebda0323--