From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: "user-error: No language for src block: (unnamed)" when running `org-icalendar-combine-agenda-files` Date: Fri, 21 Aug 2015 15:43:31 +0100 Message-ID: References: <874mjsq2r7.fsf@nicolasgoaziou.fr> <8737zcoh9r.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSnXp-0000IT-L4 for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 10:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSnXk-0004Sv-JR for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 10:43:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:45608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSnXk-0004Sn-CK for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 10:43:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSnXi-0001cR-U0 for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 16:43:43 +0200 Received: from 193.63.223.134 ([193.63.223.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 16:43:42 +0200 Received: from andreas.leha by 193.63.223.134 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 16:43:42 +0200 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, Ista Zahn writes: > On Fri, Aug 21, 2015 at 10:20 AM, Nicolas Goaziou > wrote: >> Ista Zahn writes: >> >>> 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. >> >> Wild guess: >> >> Principle of least surprise: setting it to nil means results from Babel >> code are not refreshed before export, without user realizing about it. >> I think most users would like them to be up-to-date before export. It >> seems sane to me. > > The problem is that if the code blocks are non-trivial it slows down > the export. Changing one line of documentation and exporting > re-evaluates all the code blocks, which for me often takes several > minutes. The defaults work for trivial examples, but not my real-world > use. Since it's easy to make it work how I want it to via > org-export-babel-evaluate I don't mean to complain too much. I posted > mostly to make sure the OP knows about org-export-babel-evaluate, in > case disabling code block evaluation on export makes sense for them. > I know that problem... Decoupling code block evaluation and export has the problem of decoupling code block evaluation and export ;-), though. If you export your document without evaluating first, how can you be sure that the resulting document is based on the latest version of the code contained in the code blocks? So, from my point of view the default is the safe option and, thus, fine. Regards, Andreas