all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to inspect a document and check for the presence of source block language names and support
@ 2014-11-29  2:08 Grant Rettke
  2014-11-29  2:22 ` Andreas Leha
  0 siblings, 1 reply; 6+ messages in thread
From: Grant Rettke @ 2014-11-29  2:08 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Good evening,

My goal is to obtain the following behavior in org mode for a document:
1) Report an error if there is a source block without a language
   specified
2) Report an error if there is a source block with a language specified
   that is *not* present in `org-babel-load-languages'

I've thought about ways to do this and come up with:
1) Visually inspect the document
2) Use `org-element' to parse and process the document

What are some other ways and what do you think about these two options?

Emacs version: `24.4.1'

Org version: `8.2.10'

Kind regards,
-- 
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

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

end of thread, other threads:[~2015-02-03  9:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-29  2:08 How to inspect a document and check for the presence of source block language names and support Grant Rettke
2014-11-29  2:22 ` Andreas Leha
2014-11-29 10:38   ` Nicolas Goaziou
2014-11-29 14:42     ` Grant Rettke
2014-11-29 20:40       ` Andreas Leha
2015-02-03  9:55     ` Sebastien Vauban

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.