[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-element-at-point and special blocks
From: |
Rasmus |
Subject: |
[O] org-element-at-point and special blocks |
Date: |
Wed, 09 Dec 2015 19:04:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hi,
Is there a reason why org-element-at-point reports the type to be a
paragraph for special blocks? E.g. in the examples at the bottom of this
mail, where | is the cursor, the types are: export-block, src-block and
paragraph with a nested special block.
Is there a neat way to detect if point is inside a block? I’m trying to
write a function for structures (e.g. #+begin_latex) that works like
org-babel-demarcate-block.
Thanks,
Rasmus
#+BEGIN_LaTeX
|
#+END_LaTeX
#+BEGIN_SRC emacs-lisp
|
#+END_SRC
#+begin_abstract
|
#+end_abstract
--
Dung makes an excellent fertilizer
- [O] org-element-at-point and special blocks,
Rasmus <=