emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Daniel Clemente" <n142857@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Re: ANN: org-eval-light.el was: Re: Embedded elisp formulas, was: Spreadsheet and weighted means
Date: Mon, 10 Nov 2008 20:51:07 +0100	[thread overview]
Message-ID: <ae9590aa0811101151q35421412q4d7bf0601cd5932e@mail.gmail.com> (raw)
In-Reply-To: <1E15E842-04B1-460F-8320-61889E2C9334@uva.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1090 bytes --]

> Any votes for including this into the contrib directory?
>
> - Carsten


  I think that org-eval-light.el could even replace org-eval.el if -light-
had an option to eval automatically all code snippets when you open a file.
This way it would act like org-eval and at the same time it could be made
secure.
  It could have a setting „what to do with code when opening a file" with
options: „never run", „ask before running" and „run without asking".

  The action of asking whether to evaluate code is similar to Emacs' local
variables behaviour.

  Someone suggested using „local variables" to define functions, but:

1. You can only call the defined functions through (funcall 'function). This
is bad because you can't control how the current code will call your
functions; for instance how org will call org-dblock-write:this-function

2. The section where you define local variables has picky and uneasy rules
about handling of line breaks and special characters.


  Therefore I think that org-eval* is needed and that the 2 could be
combined.

-- Daniel

[-- Attachment #1.2: Type: text/html, Size: 1478 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-11-10 19:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-20  7:00 Spreadsheet and weighted means Nicolas Goaziou
2008-09-29  8:43 ` Carsten Dominik
2008-09-29  8:44   ` Carsten Dominik
2008-10-01 16:46   ` Nicolas Goaziou
2008-10-01 19:26     ` Carsten Dominik
2008-10-01 19:45       ` Embedded elisp formulas, was: " Eric Schulte
2008-10-01 20:29         ` Paul R
2008-10-02  0:03           ` Eric Schulte
2008-10-02 11:44             ` Carsten Dominik
2008-10-08 23:12               ` ANN: org-eval-light.el was: " Eric Schulte
2008-11-06  1:19               ` Eric Schulte
2008-11-09  7:02                 ` Carsten Dominik
2008-11-10 19:51                   ` Daniel Clemente [this message]
2008-10-04  8:49       ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae9590aa0811101151q35421412q4d7bf0601cd5932e@mail.gmail.com \
    --to=n142857@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).