emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Cecil Westerhof <CecilWesterhof@xs4all.nl>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: how to clear computed values
Date: Wed, 11 Jul 2007 10:49:20 +0200	[thread overview]
Message-ID: <8a6b8a1aff2bb53d8a97e24f5d5c022a@science.uva.nl> (raw)
In-Reply-To: <1184142385.6253.115.camel@Barebusta.DecebalComp>


On Jul 11, 2007, at 10:26, Cecil Westerhof wrote:
> In this example the first two digits of kmstand where not input at row 
> 3
> and you get a message. But you get also a message at the first row. Is
> it possible to circumvent this?

For example by leaving an empty row before the first data line.

>
> Is it possible to define functions in an org-file? For example: it 
> would
> be nice to have more extensive checking on the values. Also the nz 
> could
> be defined. It is in my .emacs now, but when I transfer the file to
> another computer, there is a risk that it doe not work anymore.

You can, by inserting something like

      # Local Variables:
      # eval: (defun nz (n) (not (= 0 n)))
      # eval: (defun nw (s) (string-match "\\S-" s))
      # End:

Check the variable `enable-local-eval', and beware that setting it to t
could be exploited to execute unwanted code in a file you get
from someone.

One problem would be that function definitions
are not buffer-local, so the same functions would be defined for all
buffers.  If you use functions with the same name, but different
definitions in different files, the result would depend on the order
of visiting the files.

> It would be nice if I did input kmstand that with tab you go to 
> prijs/l.
> (Skipping fields with formula's.) And when giving tab on the field
> liters going to the field kmstand. Is that something that could be 
> made?

I don't think this is necessary, and no spreadsheet behaves like this.
Just press TAB a few times.

- Carsten

  reply	other threads:[~2007-07-11  9:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-10 18:38 how to clear computed values Cecil Westerhof
2007-07-11  6:15 ` Carsten Dominik
2007-07-11  8:26   ` Cecil Westerhof
2007-07-11  8:49     ` Carsten Dominik [this message]
2007-07-11  9:02       ` Cecil Westerhof
2007-07-11 10:19         ` Carsten Dominik
2007-07-11 11:02           ` Cecil Westerhof
2007-07-11 11:21             ` Carsten Dominik
2007-07-11  7:22 ` Cecil Westerhof

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=8a6b8a1aff2bb53d8a97e24f5d5c022a@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=CecilWesterhof@xs4all.nl \
    --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).