From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Somelauw ." <somelauw@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Add contents-begin and contents-end to src-block in org-element.el
Date: Mon, 25 Dec 2017 23:42:38 +0100 [thread overview]
Message-ID: <87po721lb5.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+gt_a8bfsvRZ2053N4SwZZ4ZgA--c7TkpL6dRZ8=uRJVkP7+A@mail.gmail.com> (Somelauw .'s message of "Mon, 25 Dec 2017 14:09:15 +0100")
"Somelauw ." <somelauw@gmail.com> 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,
next prev parent reply other threads:[~2017-12-25 22:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-24 14:56 Add contents-begin and contents-end to src-block in org-element.el Somelauw .
2017-12-24 15:05 ` Nicolas Goaziou
2017-12-24 23:55 ` Somelauw .
2017-12-25 8:49 ` Nicolas Goaziou
2017-12-25 13:09 ` Somelauw .
2017-12-25 22:42 ` Nicolas Goaziou [this message]
2017-12-27 20:50 ` Somelauw .
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87po721lb5.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=somelauw@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).