emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-element-at-point fails in programming-modes
@ 2014-08-20 12:00 Thorsten Jolitz
  2014-08-20 12:12 ` Thorsten Jolitz
  2014-08-20 12:40 ` Nicolas Richard
  0 siblings, 2 replies; 27+ messages in thread
From: Thorsten Jolitz @ 2014-08-20 12:00 UTC (permalink / raw)
  To: emacs-orgmode


Hi List,

with point at the beginning of each of the following blocks,
`org-element-at-point' does recognize the correct type when buffer is in
org-mode and other text-modes, but not so in programming modes, e.g. the
*scratch* buffer (lisp-interaction-mode). Then only the src-block is
recognized correctly, all the others are parsed as paragraphs.

* ORG SCRATCH

#+BEGIN_QUOTE
hallo world
#+END_QUOTE

#+BEGIN_COMMENT
hallo world
#+END_COMMENT

#+BEGIN_EXAMPLE
hallo world
#+END_EXAMPLE

#+BEGIN_SRC emacs-lisp
hallo world
#+END_SRC

Although Org functions are of course made only for working in org-mode
and its a bit hard to see at first sight how this could be useful, I
wonder if the regexps could be made a bit more general to make
`org-element-at-point' work in programming modes too (most likely this
behaviour is caused by references to character-classes that differ in
text-modes and programming-modes)?

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2014-09-23 21:27 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20 12:00 org-element-at-point fails in programming-modes Thorsten Jolitz
2014-08-20 12:12 ` Thorsten Jolitz
2014-08-20 12:17   ` Nick Dokos
2014-08-20 12:39     ` Sebastien Vauban
2014-08-20 14:28       ` Nick Dokos
2014-08-22  4:02         ` Nick Dokos
2014-08-22  5:22           ` Nicolas Richard
2014-08-22 13:23             ` Nick Dokos
2014-08-22 10:28           ` Thorsten Jolitz
2014-08-22 13:46             ` Nick Dokos
2014-08-22 13:53             ` Nicolas Richard
2014-08-22 14:20               ` Nicolas Richard
2014-08-22 14:26               ` Article Mode eats newlines between src-blocks (was Re: org-element-at-point fails in programming-modes) Thorsten Jolitz
2014-08-22 14:46               ` org-element-at-point fails in programming-modes Nick Dokos
2014-08-22 17:07           ` Rasmus
2014-08-20 12:41   ` Nicolas Richard
2014-08-21 20:03   ` Rasmus
2014-08-21 20:13     ` Rasmus
2014-08-21 20:35     ` Thorsten Jolitz
2014-08-21 20:49       ` Rasmus
2014-08-20 12:40 ` Nicolas Richard
2014-08-20 13:52   ` Thorsten Jolitz
2014-08-21  8:58     ` Nicolas Goaziou
2014-08-21 11:22       ` Thorsten Jolitz
2014-08-22 13:47       ` Bastien
2014-09-23 10:29       ` Thorsten Jolitz
2014-09-23 21:27         ` Nicolas Goaziou

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).