emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-babel-load-file misleading function name, wrong behavior
@ 2014-09-18  7:56 Marcin Antczak
  2014-09-18 15:07 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Antczak @ 2014-09-18  7:56 UTC (permalink / raw)
  To: emacs-orgmode

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.


Marcin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-babel-load-file misleading function name, wrong behavior
  2014-09-18  7:56 org-babel-load-file misleading function name, wrong behavior Marcin Antczak
@ 2014-09-18 15:07 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2014-09-18 15:07 UTC (permalink / raw)
  To: emacs-orgmode

Marcin Antczak <marcin.antczak@neutrico-themes.pl> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-18 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18  7:56 org-babel-load-file misleading function name, wrong behavior Marcin Antczak
2014-09-18 15:07 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).