From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-element-at-point and special blocks
Date: Thu, 10 Dec 2015 17:08:02 +0100 [thread overview]
Message-ID: <87h9jq70d9.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87fuzajodi.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 10 Dec 2015 16:48:41 +0100")
Rasmus <rasmus@gmx.us> writes:
> Out of curiosity, why is it "more" consistent to return paragraph
> here?
Notwithstanding this case, if `org-element-at-point' returns
`special-block', you /know/ that you are either on block boundaries
(#+begin_special or #+end_special) or on any affiliated keyword above,
but /never/ within the block.
If `org-element-at-point' returns `special-block' here, you create an
exception, which you have to handle later on.
Besides, the truly empty contents are
#+begin_special
#+end_special
therefore, I'm not shocked if
#+begin_special
#+end_special
is a special block with an empty paragraph instead.
Regards,
prev parent reply other threads:[~2015-12-10 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 18:04 org-element-at-point and special blocks Rasmus
2015-12-10 6:34 ` Nicolas Goaziou
2015-12-10 15:48 ` Rasmus
2015-12-10 16:08 ` Nicolas Goaziou [this message]
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=87h9jq70d9.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/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).