From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: "user-error: No language for src block: (unnamed)" when running `org-icalendar-combine-agenda-files` Date: Fri, 21 Aug 2015 09:46:22 -0400 Message-ID: References: <874mjsq2r7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSmeZ-0004tU-MF for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 09:46:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSmeY-000299-MX for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 09:46:43 -0400 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:35489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSmeY-00028z-Hk for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 09:46:42 -0400 Received: by obbwr7 with SMTP id wr7so59042839obb.2 for ; Fri, 21 Aug 2015 06:46:41 -0700 (PDT) In-Reply-To: <874mjsq2r7.fsf@nicolasgoaziou.fr> 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: "JI, Xiang" , emacs-orgmode Mailinglist On Fri, Aug 21, 2015 at 7:50 AM, Nicolas Goaziou w= rote: > Hello, > > "JI, Xiang" writes: > >> Well actually I think the error shows because of another block below >> the emacs-lisp blocks. In this header I just wrote #+BEGIN_SRC without >> any language name. Is it actually wrong and maybe I should have >> written #+BEGIN_EXAMPLE instead? > > Correct. > >> Though I=E2=80=99d still say it probably shouldn=E2=80=99t have failed t= he export?=E2=80=A6 > > Babel blocks are executed prior to any export process, no matter what > you want to include in the output. Unless you've restored sanity by setting org-export-babel-evaluate to nil. Personally I think this is not a good default. Source block evaluation and export are distinct actions, and I don't see why they should be linked by default. Best, Ista