From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Somelauw ." Subject: Re: Add contents-begin and contents-end to src-block in org-element.el Date: Mon, 25 Dec 2017 14:09:15 +0100 Message-ID: References: <87tvwggo9s.fsf@nicolasgoaziou.fr> <87o9mnfb0j.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTSVK-0005Ex-LB for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 08:09:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTSVJ-0006OD-Iz for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 08:09:18 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:43814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTSVJ-0006Me-CK for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 08:09:17 -0500 Received: by mail-wm0-x229.google.com with SMTP id n138so31822151wmg.2 for ; Mon, 25 Dec 2017 05:09:17 -0800 (PST) In-Reply-To: <87o9mnfb0j.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org 2017-12-25 9:49 GMT+01:00 Nicolas Goaziou > "Somelauw ." writes: > >> By the way, do you know of any other org-elements that have an inner >> body that doesn't classify as "data in Org syntax"? > > comment, comment blocks, example blocks, export blocks, fixed-width, > keyword, latex-environment, node property. Thanks I'll consider these > > These elements usually set :value property instead. Thank you. What I need is the beginning and ending position of :value so I can yank/kill/delete/select it (or create a text-object in Evil). I think a general solution to find the inner body of these elements is using (forward-search (org-get-property :value element)) and reading match-data afterwards. Merry Christmas, Somelauw