From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 QIoUEtcCZWU0YQAA9RJhRA:P1 (envelope-from ) for ; Mon, 27 Nov 2023 21:57:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QIoUEtcCZWU0YQAA9RJhRA (envelope-from ) for ; Mon, 27 Nov 2023 21:57:59 +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 BDA6E11F8F for ; Mon, 27 Nov 2023 21:57:58 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fgEEpJVf; 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=1701118679; a=rsa-sha256; cv=none; b=KmjX1cMPGWkhb2/iiUZaxqGCrLgAtSM1j6NAMQnJPk16u/ZSMXJB4RMCmjSFJrnkN/zmCr bf6fJDEEnAFq0Ej066jLMGbY7bAJlU3hHaiMTXnLHu3JoW109HHhQDgI6C9x0M60PxhLQ3 qyYvCocfEkuqZkMWIq1ichMex+t496tgW/A8QAwDEqsyk/CkDdDoMRgD5MMjuHiTnUOQs0 BJ6snflAN/fd6JHVdcswSnOeg+vd3LsJEifMNJiB93hykSNwDyawGYv2K/ByKnWdvNzG15 xXlRhT+J4up3zyLGIEkqgI15lr10lczn525pUT6jtZddlyOqWkNJBUUXKxZh1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fgEEpJVf; 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=1701118679; 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=SiE1OCEvqTXOl2qxCMrVOLeHjmFep7qWBHWNnPw+gWw=; b=H4uUxbVTcAP2dx5SXitBfO2gb0z4mdMHaCKE8eUN2nujudLbzYSk2nlJUte8RlED8YPD3H OedXymbKkAhQMUj4gIjBJf6H/5iKXKqxIk61tOMc5ozyNxE2hRI0IsdxhXUEVoy2p03bCN rT11Mg1C55AuFoOKLuYTpX3aVkhGOlrSC3nYGLUwnDDsJieDeGAJ1fVQcV23Mzlj/vm2rr kX+IYa4wl+n6hD0D8/Mk2VTbhkB/03xfNWB33snv53HFU03TnbS/6Fr9Tl3CHCpim9o1k6 Bm/lZGHhDD4FKuVBcs/WXpnjgOcueavQZornj5N3lDNQQlkZBCb+4yI2F7k3gg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7ifE-0005dn-RZ; Mon, 27 Nov 2023 15:57:08 -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 1r7if9-0005cp-QH for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 15:57:04 -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 1r7if7-00015R-3x for emacs-orgmode@gnu.org; Mon, 27 Nov 2023 15:57:03 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E799E240101 for ; Mon, 27 Nov 2023 21:56:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1701118617; bh=WHoo5XJf2auZBu+0F+agdYzXy2569T8Q7Mxw1Bxl2as=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=fgEEpJVfQdsjBDrRNNaUfJH2CS4TxY0bKwyW5IjarSEvwa9YeDyx7qiKPLqUmVA6i fy2Z5cM27mr1DOgdnc6DYAkUlUkSyGR9wCCYtDmsZt9ZXzB3Q/2G+GUm3IxOOf6jo3 vq904Hps0+1VYjyYCW9qOgssT5pns+0HfNsywmVw2NL+B+aBJz0Aw6eAhfioRgcuoc UILiMNHzT4Xml49sYRFeXyTmoZEaiBWstb39gXvTYAy0DsuNSjTXgMV1cCM2Qfuyyb hMPJvoTUdrxEiaRQnWOvBA8xwm+YhQvJj3U9Y6bunjeVHFsseZNQGb5yv7CwsQT5aY wGQfZ6ny2ge1Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SfHvY2wzxz9rxQ; Mon, 27 Nov 2023 21:56:57 +0100 (CET) From: Ihor Radchenko To: Jens Schmidt Cc: Org-mode Subject: Re: How to get the inner boundaries of a block In-Reply-To: <628222e2-d516-4ff0-b244-66f20f28698e@vodafonemail.de> References: <628222e2-d516-4ff0-b244-66f20f28698e@vodafonemail.de> Date: Mon, 27 Nov 2023 20:59:35 +0000 Message-ID: <871qcavrns.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: -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: -6.34 X-Spam-Score: -6.34 X-Migadu-Queue-Id: BDA6E11F8F X-TUID: vPD6Wom2hzUW Jens Schmidt writes: > Triggered by a recent question here on `org-in-src-block-p' and a > current need: Is there a function already available that returns > the *inner* boundaries of an arbitrary block element? Nope. There is `org-src--contents-area', but it is not guaranteed to work as it is an internal function. > Currently, I use org element properties and some combination of > save-excursion, forward-line, and skip-syntax-* This is currently the way to go. > ..., but I thought this > could be something which is available already. A cursory search hasn't > brought up anything, though. Maybe in future. Something like https://git.sr.ht/~yantar92/org-mode/tree/feature/org-font-lock-element/item/lisp/org-element-match.el But not yet finalized. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at