If I use (thing-at-point 'paragraph)
(or mark-paragraph
, for that matter), the selection isn't necessarily aware only about the empty lines. Especially, with lists and code blocks in org-mode.
So, I need a function which returns the bounds which include everything between surrounding blank lines. How would I do that?
EDIT
So, to clarify, if I do (thing-at-point 'paragraph)
here:
#+BEGIN_SRC python
x = 1
y = 2
#+END_SRC
I get:
"x = 1
y = 2
#+END_SRC" <font info>