Hi Rainer,
On Sep 5, 2009, at 4:08 PM, Rainer Stengele wrote:
Hi Carsten,
excellent, thanks a lot!
I now have have started with this regexp:
...
'(org-agenda-entry-text-exclude-regexps (quote ("^.*- State
\"DONE\".*\n" "^.*erzeugt:.*\n")))
...
which works except in cases like these:
...
- State "DONE" [2008-02-24 So 20:52]
- State "DONE" [2008-02-24 So 20:52]
erzeugt: [2008-01-12 Sa 21:40]
...
or
...
- State "DONE" [2008-02-24 So 20:51]
- State "DONE" [2008-02-24 So 20:51]
- State "DONE" [2008-02-24 So 20:51]
- State "DONE" [2008-02-24 So 20:51]
- State "DONE" [2008-02-24 So 20:50]
- State "DONE" [2008-02-24 So 20:50]
erzeugt: [2008-01-12 Sa 21:40]
...
The agenda weeds out alle lines except the last line "erzeugt ...".
The reason for this was that the last line did not have a newline after it,
because that is being removed before the regular expressions are
applied. I have changed this now, so that the \n is still present.
Another fix would have been to make the final newline optional by
adding "?" to the regexp.
- Carsten