From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yHkBK1H8ZGUoTAAAauVa8A:P1 (envelope-from ) for ; Mon, 27 Nov 2023 21:30:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yHkBK1H8ZGUoTAAAauVa8A (envelope-from ) for ; Mon, 27 Nov 2023 21:30:09 +0100 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 75B645E66C for ; Mon, 27 Nov 2023 21:30:09 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IKACgqbk; 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=1701117009; 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=M8oafF58LAoQGwt+qHrGyx7ZGrhm0hR3bTqB6AJhW08=; b=kw7fNMSiWZNhjOIZRz3TpvbPVd0PKfV7pX7Fcngw7ecBFluT80imk9wU3l+iBnatUnRH7/ 7zVTFRLO/wnYvyrmuazl1dpSPtX1FeEaPElYK4IbeAwufZwbnKs9+Qw8fr6EOUNUPUKsL+ Xh8fgestcvTne2WQoDq1KYoj+6yMmZRhivTvo6gH4dWe+L2RDhEzv6Jd9G96F7Nntet8jX k8rY5yYcDpoGLUO3RoCNW1YnawEkSKABFw4K939U5Dz/q6zMgWNqbzxqA0VdtxOxLK4ya3 MThDWNqX5CrPYZhdcNOcl+jwWBu56kEXUR2k1d5vLUOCk8QWvnCauhXZ+mqvWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701117009; a=rsa-sha256; cv=none; b=KTgLjwdqHImImgOZ7QQU8NCJU2IWP/ovBQZAIgsqxXHeyUUNVP9HL+EgeHoqHVF7kzjzdh X1jKKtqWdYxEf01/nVzP5GXABwOhzToJLDxpST9I21jJA6+MGypyVGdIpjkDnd/WiopKKX ddqb41Qx7kXEkeFVB5mSSSUdQp3j+60AFxJPxi1UqeZrRu5gXZdT784TxTYwkCVo5l89cD acuAbGY8nPQuDAoxfaG6jsGsnTpKPpFRHgv+oNkD7xav9Q+aatRnG/n42+BuHpcZWibQsq h5OowvqtMAncfB+hWuX42j1fVuwDa0P0b9BV6l0AzKvqnLWoHzWb0gqhRc/g4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IKACgqbk; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7iDR-0007pa-D2; Mon, 27 Nov 2023 15:28:25 -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 1r7iDP-0007ak-0E for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 15:28:23 -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 1r7iDM-0002zb-O1 for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 15:28:22 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 86929240027 for ; Mon, 27 Nov 2023 21:28:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701116896; bh=M8oafF58LAoQGwt+qHrGyx7ZGrhm0hR3bTqB6AJhW08=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=IKACgqbkTRjxNN6jnIx14YlMPdhqXIEvtHCucATg+xvmaK4ZCvkP2mSh+VUSipn+L jGq3jXLmpUPHfOtwTDnodN2jBbEc1AUKAdwAQyVObOiD7UDOMAqmCfnIyl6Zp76cjI 3UhJNh5eSAW4BtHpfg6NMu3rZdUQlziz0tuaPWGN/nGnUwE/nkBtE1/94uGvjy82+2 fzb4G1ROWzn43EQkw9UQVfy66jRCV4yowVPCxuJmhZ3ILs22y1/9xLlHnyffkG8XfE FXFtMYckqrLPcE9TVT8lacjF8tY+ejCF7cYPrMEUbftB4g44cBGTuqf6EZoVImSUlV WsINTKLHzLdxw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SfHGR2kPRz9rxB; Mon, 27 Nov 2023 21:28:15 +0100 (CET) From: Ihor Radchenko To: No Wayman Cc: emacs-orgmode@gnu.org Subject: Re: [Bug] org-in-src-block-p returns t when not in source block In-Reply-To: <87msuzdkcu.fsf@gmail.com> References: <87msuzdkcu.fsf@gmail.com> Date: Mon, 27 Nov 2023 20:30:55 +0000 Message-ID: <874jh7uef4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@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_H5=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=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -9.27 X-Spam-Score: -9.27 X-Migadu-Queue-Id: 75B645E66C X-TUID: 9qsvB/IasfQY No Wayman writes: >> What about the attached patch? > > That is much clearer. Thank you. Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3Dbd7fab212 >> If you want to check if point is inside source block code, use INSIDE >> argument. > > Using the INSIDE argument still appears to fail in some cases: > > ... >> Org mode version 9.6.11 (release_9.6.11 @ /usr/share/emacs/30.0.50/lisp/= org/) >> (org-in-source-block-p =E2=80=99inside) >> point on preceding blank line: PASS >> point on begin_src: PASS >> point between begin_src end_src: PASS >> point on end_src (non-blank line after): PASS >> point on end_src (blank line after): PASS >> point on end_src (no line after): FAIL This one passed on main. >> point on trailing blank line: FAIL Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D6d7c7917a --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at