From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Add contents-begin and contents-end to src-block in org-element.el Date: Mon, 25 Dec 2017 23:42:38 +0100 Message-ID: <87po721lb5.fsf@nicolasgoaziou.fr> References: <87tvwggo9s.fsf@nicolasgoaziou.fr> <87o9mnfb0j.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTbSH-00037O-MY for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 17:42:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTbSE-0001Em-Ko for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 17:42:45 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:43060) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eTbSE-0001EF-Er for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 17:42:42 -0500 In-Reply-To: (Somelauw .'s message of "Mon, 25 Dec 2017 14:09:15 +0100") 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: "Somelauw ." Cc: emacs-orgmode@gnu.org "Somelauw ." writes: I suggest the following. For contents begin: (save-excursion (goto-char (org-element-property :post-affiliated element)) (line-beginning-position 2)) For contents end: (save-excursion (goto-char (org-element-property :end element)) (skip-chars-backward " \t\n") (line-beginning-position)) Regards,