From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: How to inspect a document and check for the presence of source block language names and support Date: Sat, 29 Nov 2014 02:22:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuXig-0006JT-9j for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:25:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuXia-0005ib-1q for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:25:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:55971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuXiZ-0005hv-S2 for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 21:25:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XuXiY-0002Mr-NU for emacs-orgmode@gnu.org; Sat, 29 Nov 2014 03:25:02 +0100 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 03:25:02 +0100 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 03:25:02 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Grant, Grant Rettke writes: > 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 I'd be interested in 2) if you come up with something here :-) Regards, Andreas