[Orgmode] Re: Alignment of numbers in tables with `nan' in some table cells

2007-08-18 Thread Christian Schlauer
Carsten Dominik [EMAIL PROTECTED] writes:

[...]

 The table editor automatically chooses the alignment of a column,
 based on the content of the column.  There are two customization
 variables involved in tuning this behavior:

[...]

I am often surprised how many things one can customize -- I didn't
expect this one to be customizable, for example:

 ,[ C-h v org-table-number-fraction RET ]

[...]

 I will make the default regexp swallow nan.

Thank you! I don't want to touch that regexp myself. :-)
-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Alignment of numbers in tables with `nan' in some table cells

2007-08-12 Thread Christian Schlauer
Hello Carsten, hello list!

This is about alignment of numbers in tables. Say I have three columns
with data (the first three columns). Then I do calculations on them
(the last two columns).

Columns 2 and 3 are complete -- I have data in each field, so there
is always some useful result in column 4, as $4=$2-$3. But column 5 is
$5=$1-$4, and in column 1 there are some empty fields where data are
missing, unfortunately. That leads to a negative value of -6 in line
3, column 5:

| data 1 | data 2 | data 3 | result 1 | result 2 |
|+++--+--|
| 23 | 25 | 17 |8 |   15 |
|| 24 | 18 |6 |   -6 |
#+TBLFM: $4=$2-$3::$5=$1-$4

Now, a negative value doesn't make sense in my real table. So instead
of printing a nonsensical value, I'd prefer something else there. I
remembered that MATLAB has `NaN', and Calc has that, too: `nan', see
(info (calc)Infinities). So I put `nan' in line 3, column 1, and
recalculate the above table:

| data 1 | data 2 | data 3 | result 1 | result 2 |
|+++--+--|
| 23 | 25 | 17 |8 | 15   |
| nan| 24 | 18 |6 | nan  |
#+TBLFM: $4=$2-$3::$5=$1-$4

It's almost perfect! It is clear that a result for column 5 in line 3
does not exist as there are no data in column 1 of that line. The only
thing that is not perfect is that the alignment in columns 1 and 5 is
messed up due to `nan'.

Could this be fixed?

Regards,
-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] OT: Newlines in file names (was: PS file in org-mode distribution/auto-mode-alist and `$')

2007-07-23 Thread Christian Schlauer
Carsten Dominik [EMAIL PROTECTED] writes:

 On Jul 15, 2007, at 22:51, Christian Schlauer wrote:

[...]

 ,
 | The end of string mark should be \\' rather than $ (which
 | means end of line).
 `

 Well, $ means end of line, and if the string being tested
 is a single line (as every single file name I have encountered
 so far is)

I agree with you -- I think it is extreeemely exotic, too, I only
became aware of this when I read in the documentation of `find':

,[ (info (find)Print File Name) ]
| If there is the faintest possibility that one of the files for which
| you are searching might contain a newline, you should use `-print0'
| instead.
`

Nevertheless, such file names are quite easy to create: `C-x C-f foo
C-q C-j bar.txt'.

 So while of course you have to be aware that $ can match somewhere
 in the middle of a multiline string, I completely disagree that one
 should not use use $ under such circumstances - it is such a nice
 and compact way to write things (too many backslashes in Emacs
 regular expressions anyway...).

 Anyway, as you point out, they do ask for this in the
 documentation, so I'll play along.

Thank you. Sorry for appearing to be nitpicking -- I only brought this
up because I try to understand the elisp (and the regexps) that I put
in my .emacs and the different styles used by different authors can be
confusing:

(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(setq auto-mode-alist (cons '(\\.m\\' . matlab-mode) auto-mode-alist))

Now, at least the regexp is the same. And I always use `add-to-list'
because

,[ C-h f add-to-list RET ]
| (add-to-list LIST-VAR ELEMENT optional APPEND COMPARE-FN)
| 
| Add ELEMENT to the value of LIST-VAR if it isn't there yet.
`



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] PS file in org-mode distribution/auto-mode-alist and `$'

2007-07-15 Thread Christian Schlauer
Hi Carsten, hi list!

I noticed that orgcard_letter is included twice in the
zip-distribution:

org-5.03/orgcard_letter.pdf
org-5.03/orgcard_letter.ps

As you distribute only PDF files for the other documentation files, I
guess you didn't intend to include orgcard_letter.ps.

Another (tiny) thing: in (info (org)Activation), you write

 (add-to-list 'auto-mode-alist '(\\.org$ . org-mode))

Long ago, I had noticed that most other authors use \\' instead of $
in the above line (see for example C-h v auto-mode-alist RET).
Recently, Stefan Monnier wrote in a posting
news:[EMAIL PROTECTED] the following
about adding to auto-mode-alist:

,
| The end of string mark should be \\' rather than $ (which
| means end of line).
`

I don't know if it really matters, but if you changed that in the
documentation it would be at least more consistent with what seems to
be common practice (and I wouldn't wonder hmm -- why is this
different? ;-).

Regards,

Christian



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-mode version 5.03

2007-07-15 Thread Christian Schlauer
timotheus [EMAIL PROTECTED] writes:

 It would great if the Org-Mode Homepage mentioned that its head revision
 is kept in official Emacs CVS -- and which branch. (MAIN?).

I haven't checked, but Carsten probably commits to the trunk or head
(or how it is called).

I think it would be nice if Emacs 22.2 would have a newer org.el than
4.67, but I don't know who (besides RMS) decides what changes on the
trunk/head will go into the branch EMACS_22_BASE (from which Emacs
22.2 will be released).

-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Re: Org-mode 4.40

2006-06-28 Thread Christian Schlauer
Carsten Dominik [EMAIL PROTECTED] writes:

 If you still find bugs, NOW is the time to report them as I am trying to
 further stabilize what we have now in preparation for the summer break.

I have some small things. Try the following in org-mode:

--8---cut here---start-8---
* Filling of text with negative numbers in column 0
In my texts, temperatures occur, like
-5 °C. Try to fill this paragraph with `M-q'.

Filling the next paragraph works:

In my texts, temperatures occur, like
5 °C. Try to fill this paragraph with `M-q'.

So the `-5' is interpreted as an itemized list -- wouldn't it be
better to check for lists with `- '?

* Timestamping
** 2006-08-03 Thu Changing the date with S-up/down works

** [2006-06-28 Wed] Changing the date with S-up/down doesn't work
It isn't possible to change the date of inactive timestamps with
S-arrow key. Instead, priorities are added to the heading. I'd much
prefer to be able to change the date.

** On a German Windows XP, I get German day names in timestamps
What I mean is that I get timestamps like [2006-06-28 Mi]. Is this
somehow configurable? I might write English, and then I want English
timestamps. (On an English Windows 2000 or an English GNU/Linux, both
with a German keyboard layout, I don't see this.)
--8---cut here---end---8---

Regards,
-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Re: [David O'Toole] Fwd: Re: org-publish future ?

2006-06-07 Thread Christian Schlauer
David O'Toole [EMAIL PROTECTED] writes:

 2. More project planning support. I would like to be able to do Gantt
charts in HTML. 

It isn't org-mode, but it does Gantt charts in Emacs (and exports them
to LaTeX):
URL:http://members.chello.at/rene.weichselbaum/etask.html. Maybe a
starting point?
-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Re: Midnight and noon in agendas

2006-06-03 Thread Christian Schlauer
Carsten Dominik [EMAIL PROTECTED] writes:

 On Jun 2, 2006, at 19:24, Christian Schlauer wrote:
 Also, 26:00 is against the rules ;-)

 That is certainly true, but I see no reason to explicitly forbid them.

Of course not! The format is unusual, but very useful.

 This is something that can be easily left at a users discretion, don't
 you agree?

I do. Also, I like how it will look in the agenda: +h:mm.

-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Re: new test version 4.19b

2006-04-05 Thread Christian Schlauer
Hello!

Carsten Dominik [EMAIL PROTECTED] writes:
 at http://www.astro.uva.nl/~dominik/Tools/org/org-4.19b.zip

I get execute-extended-command: Symbol's function definition is void:
defvaralias in the *Messages* buffer when I:

- start Emacs 21.3

- C-x C-f foo.txt RET

- M-x org-mode RET

I have the same problem with existing .org-files.

 And before you ask, no, I have not found a way to make this ellipsis
 show up in bold face or in a color.

I didn't even think of requesting that, really!

Hm.

But now as you are mentioning it, if you find a way ... ;-)
-- 
Christian Schlauer



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode