From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: babel stopping export after updating to org 8.3 Date: Tue, 15 Sep 2015 06:35:52 +0200 Message-ID: <55F7A028.5000408@roklein.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbhyJ-0000Qg-E2 for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 00:36:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbhyF-0002aR-CB for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 00:35:59 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:55144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbhyF-0002Zu-53 for emacs-orgmode@gnu.org; Tue, 15 Sep 2015 00:35:55 -0400 In-Reply-To: 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: Aviv , emacs-orgmode@gnu.org Hi Aviv wrote: > Hi! > > I just upgraded to org 8.3 and am stuck with an export issue. > > When I try to export a file with just "#+begin_src" and " "#+end_src" as the > only lines, I get the error > "user-error: No language for src block: (unnamed)". > > It seems like it is calling org-babel-exp-process-buffer -- but there is no > reason that I can tell that is being called. (org-export-babel-evaluate is > definitely nil, thought other testing seems to indicate that shouldn't even > matter) > > I've tried this in a clean "emacs -q" emacs and there is no issue -- but I > still have the issue with an empty init.el! > > Any idea what could be wrong? Thanks! > > You need to specify a language, e.g. #+begin_src foo #+end_src You can use any string for language. However, if you export to latex you want to either a) use a language the LaTeX `listings' package knows about or b) map your language string to a language existing in the `listings' package. I like to put configuration files in src blocks as language `conf', so I added the following to my .emacs file: (add-to-list 'org-latex-listings-langs '(conf " ")) That is, I set the `listings' packages language to a blank (empty string doesn't work) and only generic settings (i.e. no specific language settings) are used when I tex the file. HTH Best regards Robert