From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 0HJmLusMZ2X4sAAAG6o9tA:P1 (envelope-from ) for ; Wed, 29 Nov 2023 11:05:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0HJmLusMZ2X4sAAAG6o9tA (envelope-from ) for ; Wed, 29 Nov 2023 11:05:31 +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 89850436D4 for ; Wed, 29 Nov 2023 11:05:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bs75wP12; 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=1701252331; a=rsa-sha256; cv=none; b=Ap0FwU+2WqaAVZlcoThi4RRAc7sDhqBFsWq/l/rJPlQfw4hRJ/Z9H247on4UPlwrohSMYs TNsr3EW+MSud1H6+zqeq1+1dY9YUaSZIPKw4yYvhwQjtQpzOUtSAp06oYzAKa5yJpKW0Lb v2GOQz8kn8DiKG2Dvch/KIstxe6Z+TtfrN3BSxGR312ZQ88u0Yd/iU/MMjHDD27BIL2Swr Fw0QW1UhPYcRX6ejtP4E5YnFnwzinjYwzUsDxJL0U7T5GbMjI1ZopTw0GomcXjjt6gX57b gllM6IS7lPIU5j/LqvVzXW/qbPh1xPpJa6JtktKmnPBY2YOwLGbu7kAo+tjgqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bs75wP12; 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=1701252331; 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=c/Tw+N8qzOA/yo/Q/hl2MscAS8khjOEj5qaT3ZxA0tA=; b=lwNVx+zxLcNH6SVnuDoDF8QcE3YplyuhKGAUrprWzKp00zGjlUhAZwugICfEXvAae/U//S vbBWVldrGLPphN3wKwGV5XZoZ+0qVMRumlJZWQRMaAvndXPXn7bbTu2oVyM38HjfrDBFo0 BC0hiT1IQHrmf/80zsdqsXZhlxAt/i6udFYytOGtA+JS6HvwaDftfBva4wGWH2YYNqjVAv 1F1Yoe+J2wl9UkMIxjaRFaIF4IzNBkQGtkw77e8gXPGaYDoRI/AVBsrfisg98L0l1yW0Ly y8MjRTZsX0VJC25/+MZPK0zGPF1RSDUl5NZD9fGTMO2vvjjBQqszMX9Oe5Eftw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8HQr-0006hG-Lj; Wed, 29 Nov 2023 05:04:37 -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 1r8HQp-0006h3-E3 for emacs-orgmode@gnu.org; Wed, 29 Nov 2023 05:04:35 -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 1r8HQm-000367-7e for emacs-orgmode@gnu.org; Wed, 29 Nov 2023 05:04:35 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 015C124002A for ; Wed, 29 Nov 2023 11:04:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701252269; bh=D084NmnuIUZN+QPAj54jSFQgG6U1HjFAXD64Q3K16VQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=bs75wP12I+2QZ8kgcG38ZhuRO8AlPFzqj1T44D1NdEDxHnbz8iIEVxsUfpclS5E2/ IsXXtMUq4Ent5/o6jCDWBb3kS54MkCA7XrfsfOqOh7aS/xs/MsQFRhTsfCYuIR+CD2 DLc7gwLpfgSE+/IfsZi/MH+PDm+vCT3dbc3Xy5MNVAjxwWYltfEKs522ku2h/X0XW5 lGPlp1z0uwPxRMYSZoiIY4CsUO+YEUwvbOFnNJeuejaY5oSuBrjs9epEOmZcqQt3XI /5wVzLE55eIagPwYn6cKsbi9LUX1jZbTDyAm95Fm1aJO+QgcQBIpYl3Zy2GSMoyKiS 5rOcfP+g9ii+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SgFKm3HMqz6tvh; Wed, 29 Nov 2023 11:04:28 +0100 (CET) From: Ihor Radchenko To: Jens Schmidt Cc: No Wayman , emacs-orgmode@gnu.org Subject: Re: [Bug] org-in-src-block-p returns t when not in source block In-Reply-To: References: <87msuzdkcu.fsf@gmail.com> <874jh7uef4.fsf@localhost> Date: Wed, 29 Nov 2023 10:07:16 +0000 Message-ID: <87sf4ohnzf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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: mx13.migadu.com X-Migadu-Spam-Score: -9.05 X-Spam-Score: -9.05 X-Migadu-Queue-Id: 89850436D4 X-TUID: dMDCFpseVqJL Jens Schmidt writes: > On 2023-11-27 21:30, Ihor Radchenko wrote: > >> Fixed, on main. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6d7c7917a > > Which is currently my HEAD, and there are still edge cases that do not > seem to be handled well. > ... > When I wrote my own inner-boundary function, I looked with envy at > the elegance of the arithmetic done in `org-in-src-block-p' but thought > that this probably would not always work ... or did I misunderstand > something here? You are right. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=57b94f344 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at