From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-babel-load-file misleading function name, wrong behavior Date: Thu, 18 Sep 2014 11:07:50 -0400 Message-ID: <87fvfpt1a1.fsf@alphaville.bos.redhat.com> References: <541A9026.5000402@neutrico-themes.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUeMj-000378-3B for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 12:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUeMW-0004rf-OO for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 12:15:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:58293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUeMW-0004r5-JD for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 12:15:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUdJX-0004MU-Ij for emacs-orgmode@gnu.org; Thu, 18 Sep 2014 17:08:07 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 17:08:07 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2014 17:08:07 +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 Marcin Antczak writes: > Hi, > > I would like to suggest changing the name to 'org-babel-load-lisp' as > current name of this function doesn't emphasise that it can tangle and > load "emacs-lisp" code blocks only. > > Another problem is that currently 'compile' option is performed every time. > Which is plain wrong. > > Compile option is supposed to improve load time and should be > performed only when it's neccessary. > > The name was probably picked in analogy to the corresponding emacs-lisp function `load-file' which also loads lisp files only. The latter is much too well entrenched to ever consider renaming. The org-babel version is certainly not, so renaming it is a possibility, although IMO it's a hassle without much payoff: C-h f org-babel-load-file tells you what you need to know. Nick