Re: [Orgmode] I do not understand this error

2007-07-11 Thread Cecil Westerhof
Op do, 12-07-2007 te 08:07 +0200, schreef Cecil Westerhof:
> I have the following table:
> 
> |---++-+-+++---+---+--+|
> |   |  datum | kmstand | prijs/l | liters | dagen  | prijs | km's 
>  | prijs/km |   km/l |
> 
> |---++-+-+++---+---+--+|
> | # ||  155111 | |||   |  
>  |  ||
> | # | 2007-07-09 |  156146 |   102.2 |  62.25 | #ERROR | 63.62 | 1035 
>  |6.147 | 16.627 |
> | # | 2007-09-11 |6953 |97.8 |  47.75 | #ERROR | 46.70 | 
> Verkeerde kmstand |  ||
> | # || | || #ERROR |   |  
>  |  ||
> 
> |---++-+-+++---+---+--+|
> #+TBLFM: $6='(if (and (not (check-if-after-hline)) (nz @-1$2) (nz 
> $2)) (-  (time-to-days (org-read-date t t "$2")) (time-to-days (org-read-date 
> t t "@-1$2"))) "");S::$7='(if (and (nz $4) (nz $5)) (format "%.2f" (/ (* $4 
> $5) 100)) "");N::$8='(if (and (nz @-1$3) (nz $3)) (if (> $3 @-1$3) (- $3 
> @-1$3) (if (not (check-if-after-hline)) "Verkeerde kmstand" "")) 
> "");N::$9='(if (and (nz $8) (nz $7)) (format "%.3f" (/ (* $7 100) $8)) 
> "");N::$10='(if (and (nz $8) (nz $5)) (format "%.3f" (/ $8 $5)) "");N

I should not use 'nz', but 'not' and 'equal'. This gives:

|---++-+-++---+---+---+--+|
|   |  datum | kmstand | prijs/l | liters | dagen | prijs | km's
  | prijs/km |   km/l |

|---++-+-++---+---+---+--+|
| # ||  155111 | ||   |   | 
  |  ||
| # | 2007-07-09 |  156146 |   102.2 |  62.25 |-3 | 63.62 | 1035
  |6.147 | 16.627 |
| # | 2007-09-11 |6953 |97.8 |  47.75 |64 | 46.70 | 
Verkeerde kmstand |  ||
| # || | ||   |   | 
  |  ||

|---++-+-++---+---+---+--+|
#+TBLFM: $6='(if (and (not (check-if-after-hline)) (not (equal @-1$2 
"")) (not (equal $2 ""))) (-  (time-to-days (org-read-date t t (concat $2))) 
(time-to-days (org-read-date t t (concat @-1$2 "");S::$7='(if (and (nz $4) 
(nz $5)) (format "%.2f" (/ (* $4 $5) 100)) "");N::$8='(if (and (nz @-1$3) (nz 
$3)) (if (> $3 @-1$3) (- $3 @-1$3) (if (not (check-if-after-hline)) "Verkeerde 
kmstand" "")) "");N::$9='(if (and (nz $8) (nz $7)) (format "%.3f" (/ (* $7 100) 
$8)) "");N::$10='(if (and (nz $8) (nz $5)) (format "%.3f" (/ $8 $5)) "");N

The only problem is that in the second element of 'dagen' there stands
'-3'. It looks like it that '(not (equal @-1$2 ""))' is not correctly is
evaluated.

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


Re: [Orgmode] Making a list to string

2007-07-11 Thread Cecil Westerhof
Op do, 12-07-2007 te 01:04 -0500, schreef Eddward DeVilla:
> On 7/12/07, Cecil Westerhof <[EMAIL PROTECTED]> wrote:
> > Yes, it looks like it works completly. (What I am missing is a knowledge
> > of Lisp. Thus that will come.)
> >
> > One thing bugs me. I am used to end a formula ending with ';N'.
> 
> By default the field values are passed to the lisp expression as a
> string.  If you want it to be passed as a number you need the ;N.  So
> if @3$4 = 123:
> 
> '(foo @3$4)  => '(foo "123")
> '(foo @3$4);N => '(foo 123)

I remember Carsten mentioning something about this.
I would expect the ';N' have influence on the output, not on the input.

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


[Orgmode] I do not understand this error

2007-07-11 Thread Cecil Westerhof
I have the following table:

|---++-+-+++---+---+--+|
|   |  datum | kmstand | prijs/l | liters | dagen  | prijs | km's   
   | prijs/km |   km/l |

|---++-+-+++---+---+--+|
| # ||  155111 | |||   |
   |  ||
| # | 2007-07-09 |  156146 |   102.2 |  62.25 | #ERROR | 63.62 | 1035   
   |6.147 | 16.627 |
| # | 2007-09-11 |6953 |97.8 |  47.75 | #ERROR | 46.70 | 
Verkeerde kmstand |  ||
| # || | || #ERROR |   |
   |  ||

|---++-+-+++---+---+--+|
#+TBLFM: $6='(if (and (not (check-if-after-hline)) (nz @-1$2) (nz $2)) 
(-  (time-to-days (org-read-date t t "$2")) (time-to-days (org-read-date t t 
"@-1$2"))) "");S::$7='(if (and (nz $4) (nz $5)) (format "%.2f" (/ (* $4 $5) 
100)) "");N::$8='(if (and (nz @-1$3) (nz $3)) (if (> $3 @-1$3) (- $3 @-1$3) (if 
(not (check-if-after-hline)) "Verkeerde kmstand" "")) "");N::$9='(if (and (nz 
$8) (nz $7)) (format "%.3f" (/ (* $7 100) $8)) "");N::$10='(if (and (nz $8) (nz 
$5)) (format "%.3f" (/ $8 $5)) "");N

With debug I get:
Substitution history of formula
Orig:   '(if (and (not (check-if-after-hline)) (nz @-1$2) (nz $2)) (-  
(time-to-days (org-read-date t t "$2")) (time-to-days (org-read-date t t 
"@-1$2"))) "");S
$xyz->  '(if (and (not (check-if-after-hline)) (nz @-1$2) (nz $2)) (-  
(time-to-days (org-read-date t t "$2")) (time-to-days (org-read-date t t 
"@-1$2"))) "")
@r$c->  '(if (and (not (check-if-after-hline)) (nz #("" 0 
12 (lazy-lock t face org-table hilit-chg hilit-chg))) (nz $2)) (-  
(time-to-days (org-read-date t t "$2")) (time-to-days (org-read-date t t "#("   
 " 0 12 (lazy-lock t face org-table hilit-chg hilit-chg))"))) "")
$1->'(if (and (not (check-if-after-hline)) (nz #("" 0 
12 (lazy-lock t face org-table hilit-chg hilit-chg))) (nz #("2007-07-09" 0 3 
(hilit-chg hilit-chg lazy-lock t) 3 5 (hilit-chg hilit-chg lazy-lock t) 5 6 
(hilit-chg hilit-chg lazy-lock t) 6 8 (hilit-chg hilit-chg lazy-lock t) 8 9 
(hilit-chg hilit-chg lazy-lock t) 9 10 (hilit-chg hilit-chg lazy-lock t (-  
(time-to-days (org-read-date t t "#("2007-07-09" 0 3 (hilit-chg hilit-chg 
lazy-lock t) 3 5 (hilit-chg hilit-chg lazy-lock t) 5 6 (hilit-chg hilit-chg 
lazy-lock t) 6 8 (hilit-chg hilit-chg lazy-lock t) 8 9 (hilit-chg hilit-chg 
lazy-lock t) 9 10 (hilit-chg hilit-chg lazy-lock t))")) (time-to-days 
(org-read-date t t "#("" 0 12 (lazy-lock t face org-table hilit-chg 
hilit-chg))"))) "")
Result: #ERROR
Format: NONE
Final:  #ERROR
If I use the code after $1, I get:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p 
#("" 0 12 (lazy-lock t face org-table hilit-chg hilit-chg)))
  =(#("" 0 12 (lazy-lock t face org-table hilit-chg 
hilit-chg)) 0)
  (not (= n 0))
  nz(#("" 0 12 (lazy-lock t face org-table hilit-chg 
hilit-chg)))
  (and (not (check-if-after-hline)) (nz #("" 0 12 ...)) (nz 
#("2007-07-09" 0 3 ... 3 5 ... 5 6 ... 6 8 ... 8 9 ... 9 10 ...)))
  (if (and (not ...) (nz #("" 0 12 ...)) (nz #("2007-07-09" 
0 3 ... 3 5 ... 5 6 ... 6 8 ... 8 9 ... 9 10 ...))) (- (time-to-days ...) 
(time-to-days ...)) "")
  eval((if (and (not ...) (nz #("" 0 12 ...)) (nz 
#("2007-07-09" 0 3 ... 3 5 ... 5 6 ... 6 8 ... 8 9 ... 9 10 ...))) (- 
(time-to-days ...) (time-to-days ...)) ""))
  eval-last-sexp-1(t)
  eval-last-sexp(t)
  eval-print-last-sexp()
  call-interactively(eval-print-last-sexp)
  recursive-edit()
  byte-code(...
  debug(error (wrong-type-argument number-or-marker-p #("  " 0 
10 (lazy-lock t face org-table hilit-chg hilit-chg
  =(#("  " 0 10 (lazy-lock t face org-table hilit-chg 
hilit-chg)) 0)
  (not (= n 0))
  nz(#("  " 0 10 (lazy-lock t face org-table hilit-chg 
hilit-chg)))
  (and (not (check-if-after-hline)) (nz #("  " 0 10 ...)) (nz 
#("20070709" 0 3 ... 3 4 ... 4 5 ... 5 6 ... 6 7 ... 7 8 ...)))
  (if (and (not ...) (nz #("  " 0 10 ...)) (nz #("20070709" 0 3 
... 3 4 ... 4 5 ... 5 6 ... 6 7 ... 7 8 ...))) (- (time-to-days ...) 
(time-to-days ...)) "")
  eval((if (and (not ...) (nz #("  " 0 10 ...)) (nz 
#("20070709" 0 3 ... 3 4 ... 4 5 ... 5 6 ... 6 7 ... 7 8 ...))) (- 
(time-to-days ...) (time-to-days ...)) ""))
  eval-last-sexp-1(t)
  eval-last-sexp(t)
 

Re: [Orgmode] Making a list to string

2007-07-11 Thread Eddward DeVilla

On 7/12/07, Cecil Westerhof <[EMAIL PROTECTED]> wrote:

Yes, it looks like it works completly. (What I am missing is a knowledge
of Lisp. Thus that will come.)

One thing bugs me. I am used to end a formula ending with ';N'.


By default the field values are passed to the lisp expression as a
string.  If you want it to be passed as a number you need the ;N.  So
if @3$4 = 123:

'(foo @3$4)  => '(foo "123")
'(foo @3$4);N => '(foo 123)

Edd


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


[Orgmode] Screencast

2007-07-11 Thread Scott Jaderholm

Hi Org-mode users,

I spent the evening recording a 25 minute screencast giving an
overview of the basic features of Org-mode. Recording screencasts sure
is a lot more work than it looks like! After trying to follow a script
and use sub par software, I got fed up trying to make everything
perfect, installed Camtasia, and just winged it.

The content overlaps considerably with David and Charles' tutorials
(in that it only covers basic functionality), but goes into less
detail than their tutorials.

Watch the screencast at: http://jaderholm.com/screencasts.html

If you've been using Org-mode for a decent amount of time I doubt that
you'll see very much you didn't already know, but you'll probably
still get a kick out of me mispronouncing every other word :)

Cheers,
Scott


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


Re: [Orgmode] Making a list to string

2007-07-11 Thread Cecil Westerhof
Op wo, 11-07-2007 te 16:59 -0500, schreef Eddward DeVilla:
> I take that back.  I think it is right.  I thought hard coded and
> frodatum were supposed to match.  Unfortunately, it looks like the
> mailed mangles the formula line.
> 
> On 7/11/07, Eddward DeVilla <[EMAIL PROTECTED]> wrote:
> > Is this any better.  I don't think it's entirely right yet.
> >
> >|---++++|
> >|   |  datum | from datum | hard coded ||
> >|---++++|
> >| # | 2007-01-01 |  1 |  1 | 2007-01-01 |
> >| # | 2007-07-09 |190 |190 | 2007-07-09 |
> >| # | 2007-07-11 |192 |192 | 2007-07-11 |
> >| # | 2007-09-11 |254 |  1 | 2007-09-11 |
> >| # |   20071012 |192 |  1 |   20071012 |
> >|---++++|
> > #+TBLFM: $3='(time-to-day-in-year (org-read-date t t (concat
> > $2)))::$5='(concat $2)::@2$4='(time-to-day-in-year (org-read-date t t
> > "2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t
> > "2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t
> > "2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t
> > "2007-01-01"));N

Yes, it looks like it works completly. (What I am missing is a knowledge
of Lisp. Thus that will come.)

One thing bugs me. I am used to end a formula ending with ';N'.
Sometimes if you do not do this, this geves an error. But in this case
this gives an error:
Substitution history of formula
Orig:   '(time-to-day-in-year (org-read-date t t (concat $2)))
$xyz->  '(time-to-day-in-year (org-read-date t t (concat $2)))
@r$c->  '(time-to-day-in-year (org-read-date t t (concat $2)))
$1->'(time-to-day-in-year (org-read-date t t (concat 2007)))
Result: #ERROR
Format: NONE
Final:  #ERROR
When using nothing after the formula, I get:
Substitution history of formula
Orig:   '(time-to-day-in-year (org-read-date t t (concat $2)))
$xyz->  '(time-to-day-in-year (org-read-date t t (concat $2)))
@r$c->  '(time-to-day-in-year (org-read-date t t (concat $2)))
$1->'(time-to-day-in-year (org-read-date t t (concat #("2007-01-01" 
0 1 (hilit-chg hilit-chg lazy-lock t) 1 2 (hilit-chg hilit-chg lazy-lock t) 2 3 
(hilit-chg hilit-chg lazy-lock t) 3 4 (hilit-chg hilit-chg lazy-lock t) 4 5 
(hilit-chg hilit-chg lazy-lock t) 5 6 (hilit-chg hilit-chg lazy-lock t) 6 8 
(hilit-chg hilit-chg lazy-lock t) 8 9 (hilit-chg hilit-chg lazy-lock t) 9 10 
(hilit-chg hilit-chg lazy-lock t)
Result: 1
Format: NONE
Final:  1
And when I put ';S' after the formula, I get the same as with nothing
after the formula.
Why this error by ';N'?
Also what is the meaning of the strange expansion by concat? Maybe not
neccesary, but I like to understand what is happening.

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


[Orgmode] fill-paragraph

2007-07-11 Thread Scott Otterson
A small bug in v5.02:  If I put the cursor on a headline that is longer
than 100 columns, and if I type

M-x fill-paragraph

then nothing happens.  It used to be that fill-paragraph would wrap
too-long headlines, but this hasn't worked for maybe the last three
org-mode versions.  I'm using emacs 22.1

Scott


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


[Orgmode] Alt-rightArrow misses space

2007-07-11 Thread Scott Otterson
Just reporting  a small bug in org-mode 5.02...

In the outline between the dotted lines below, if I:

* put the cursor at the end of "TODO confidence overlaps:"
* hit M-ret
* hit M-rightArrow

A new subheadline under "TODO confidence overlaps:" is created, as
expected.  The problem is that the usual space after the right most
leading '*' is missing.   In other cases, the space is created correctly
but, for some reason, not this one.

Scott


* [[ASRU]] Paper (due 7/16/07)
*** TODO confidence and overlaps:
* remove



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


Re: [Orgmode] Column view questions

2007-07-11 Thread Charles philip Chan
"Daniel J. Sinder" <[EMAIL PROTECTED]> writes:

> Seeing as bbdb lacks the same functionality that I need for org
> (namely, the vCard importer) I don't see a big benefit (for me) in
> going to bbdb.

You can import vcard into bbdb:

http://www.emacswiki.org/cgi-bin/emacs-en/BbdbImporters#toc3

> Can something like org's column view be achieved?  

No at present. However, there is a view where each entry is on a single
line.

Charles

-- 
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?"
(By Patrick Volkerding)


pgpHX323S1iCC.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Column view questions

2007-07-11 Thread Jose E. Marchesi

Thanks for this suggestion.  I don't use emacs for mail, I've never
used bbdb, and I'm already quite familiar with org-mode.  Seeing as
bbdb lacks the same functionality that I need for org (namely, the
vCard importer) I don't see a big benefit (for me) in going to bbdb.

I am working in a replacement for bbdb that natively uses vcard data
to store contacts.

http://www.nongnu.org/addressbook/

-- 
José E. Marchesi  <[EMAIL PROTECTED]>

GNU Project   http://www.gnu.org
GNU Spain http://es.gnu.org



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


Re: [Orgmode] Column view questions

2007-07-11 Thread Daniel J. Sinder
Thanks for this suggestion.  I don't use emacs for mail, I've never
used bbdb, and I'm already quite familiar with org-mode.  Seeing as
bbdb lacks the same functionality that I need for org (namely, the
vCard importer) I don't see a big benefit (for me) in going to bbdb.

That said, it would be helpful to see a screenshot of browsing an
address book with bbdb.  Can something like org's column view be
achieved?  Assuming you're already familiar with bbdb, have it
installed, etc., would it be difficult to send me or post an image
with some mocked up contacts?  I didn't see anything like this on
the project page.

Thanks,
Dan




On 07/11/2007 12:42 PM, Jason F. McBrayer wrote:
> "Daniel J. Sinder" <[EMAIL PROTECTED]> writes:
> 
>> PROPERTIES and column view are fantastic!  Thanks Carsten.
>>
>> I already have visions of moving my address book into org.  I've set
>> my sights on finally learning Elisp by writing a vCard-to-org
>> function (and the reverse).
>>
>> How well does generating column view scale for hundreds of headlines?
> 
> You'd be better off moving your address book into bbdb (no need to
> abuse org for the purpose when there's already a perfectly good emacs
> tool for the purpose).  We really need a good vCard-to-bbdb (and the
> reverse) converter, though.
> 



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


Re: [Orgmode] Making a list to string

2007-07-11 Thread Eddward DeVilla

I take that back.  I think it is right.  I thought hard coded and
frodatum were supposed to match.  Unfortunately, it looks like the
mailed mangles the formula line.

On 7/11/07, Eddward DeVilla <[EMAIL PROTECTED]> wrote:

Is this any better.  I don't think it's entirely right yet.

   |---++++|
   |   |  datum | from datum | hard coded ||
   |---++++|
   | # | 2007-01-01 |  1 |  1 | 2007-01-01 |
   | # | 2007-07-09 |190 |190 | 2007-07-09 |
   | # | 2007-07-11 |192 |192 | 2007-07-11 |
   | # | 2007-09-11 |254 |  1 | 2007-09-11 |
   | # |   20071012 |192 |  1 |   20071012 |
   |---++++|
#+TBLFM: $3='(time-to-day-in-year (org-read-date t t (concat
$2)))::$5='(concat $2)::@2$4='(time-to-day-in-year (org-read-date t t
"2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t
"2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t
"2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t
"2007-01-01"));N


On 7/11/07, Cecil Westerhof <[EMAIL PROTECTED]> wrote:
> I have the following table:
> 
|---++---++--|
> |   |  datum |from datum | hard coded |   
   |
> 
|---++---++--|
> | # | 2007-01-01 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 49, 45, 48, 49] |
> | # | 2007-07-09 |   192 |190 | [50, 48, 
48, 55, 45, 48, 55, 45, 48, 57] |
> | # | 2007-07-11 |   192 |192 | [50, 48, 
48, 55, 45, 48, 55, 45, 49, 49] |
> | # | 2007-09-11 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 57, 45, 49, 49] |
> | # |   20071012 |   192 |  1 | [50, 48, 
48, 55, 49, 48, 49, 50] |
> 
|---++---++--|
> #+TBLFM: $3='(time-to-day-in-year (org-read-date t t "$2"));N::$5="$2"::@2$4='(time-to-day-in-year 
(org-read-date t t "2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t 
"2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t "2007-07-11"));N::@5$4='(time-to-day-in-year 
(org-read-date t t "2007-01-01"));N::
>
> The column 'from datum' does not get the right values. The last column
> shows why. "$2" gives a list of ASCII values of the string instead of
> the string. This makes that org-read-data gets 50 as a parameter instead
> of the string representing a date. How do I convert this list back to
> the string it is representing?
>
> --
> Cecil Westerhof <[EMAIL PROTECTED]>
>
>
>
> ___
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>




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


Re: [Orgmode] Making a list to string

2007-07-11 Thread Eddward DeVilla

Is this any better.  I don't think it's entirely right yet.

  |---++++|
  |   |  datum | from datum | hard coded ||
  |---++++|
  | # | 2007-01-01 |  1 |  1 | 2007-01-01 |
  | # | 2007-07-09 |190 |190 | 2007-07-09 |
  | # | 2007-07-11 |192 |192 | 2007-07-11 |
  | # | 2007-09-11 |254 |  1 | 2007-09-11 |
  | # |   20071012 |192 |  1 |   20071012 |
  |---++++|
#+TBLFM: $3='(time-to-day-in-year (org-read-date t t (concat
$2)))::$5='(concat $2)::@2$4='(time-to-day-in-year (org-read-date t t
"2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t
"2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t
"2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t
"2007-01-01"));N


On 7/11/07, Cecil Westerhof <[EMAIL PROTECTED]> wrote:

I have the following table:

|---++---++--|
|   |  datum |from datum | hard coded | 
 |

|---++---++--|
| # | 2007-01-01 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 49, 45, 48, 49] |
| # | 2007-07-09 |   192 |190 | [50, 48, 
48, 55, 45, 48, 55, 45, 48, 57] |
| # | 2007-07-11 |   192 |192 | [50, 48, 
48, 55, 45, 48, 55, 45, 49, 49] |
| # | 2007-09-11 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 57, 45, 49, 49] |
| # |   20071012 |   192 |  1 | [50, 48, 
48, 55, 49, 48, 49, 50] |

|---++---++--|
#+TBLFM: $3='(time-to-day-in-year (org-read-date t t "$2"));N::$5="$2"::@2$4='(time-to-day-in-year 
(org-read-date t t "2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t 
"2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t "2007-07-11"));N::@5$4='(time-to-day-in-year 
(org-read-date t t "2007-01-01"));N::

The column 'from datum' does not get the right values. The last column
shows why. "$2" gives a list of ASCII values of the string instead of
the string. This makes that org-read-data gets 50 as a parameter instead
of the string representing a date. How do I convert this list back to
the string it is representing?

--
Cecil Westerhof <[EMAIL PROTECTED]>



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




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


[Orgmode] Making a list to string

2007-07-11 Thread Cecil Westerhof
I have the following table:

|---++---++--|
|   |  datum |from datum | hard coded | 
 |

|---++---++--|
| # | 2007-01-01 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 49, 45, 48, 49] |
| # | 2007-07-09 |   192 |190 | [50, 48, 
48, 55, 45, 48, 55, 45, 48, 57] |
| # | 2007-07-11 |   192 |192 | [50, 48, 
48, 55, 45, 48, 55, 45, 49, 49] |
| # | 2007-09-11 |   192 |  1 | [50, 48, 
48, 55, 45, 48, 57, 45, 49, 49] |
| # |   20071012 |   192 |  1 | [50, 48, 
48, 55, 49, 48, 49, 50] |

|---++---++--|
#+TBLFM: $3='(time-to-day-in-year (org-read-date t t 
"$2"));N::$5="$2"::@2$4='(time-to-day-in-year (org-read-date t t 
"2007-01-01"));N::@3$4='(time-to-day-in-year (org-read-date t t 
"2007-07-09"));N::@4$4='(time-to-day-in-year (org-read-date t t 
"2007-07-11"));N::@5$4='(time-to-day-in-year (org-read-date t t 
"2007-01-01"));N::

The column 'from datum' does not get the right values. The last column
shows why. "$2" gives a list of ASCII values of the string instead of
the string. This makes that org-read-data gets 50 as a parameter instead
of the string representing a date. How do I convert this list back to
the string it is representing?

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


[Orgmode] Bug: M-left and M-right in 5.02

2007-07-11 Thread Scott Jaderholm

Apologies if this has already been reported.

In a new org buffer:
M-RET
M-RET
C-p
M-right

The cursor should be over one more space. At this point M-right and
M-left jump to other lines and no longer work correctly.

Thanks,
Scott


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


Re: [Orgmode] Column view questions

2007-07-11 Thread Jason F. McBrayer
"Daniel J. Sinder" <[EMAIL PROTECTED]> writes:

> PROPERTIES and column view are fantastic!  Thanks Carsten.
>
> I already have visions of moving my address book into org.  I've set
> my sights on finally learning Elisp by writing a vCard-to-org
> function (and the reverse).
>
> How well does generating column view scale for hundreds of headlines?

You'd be better off moving your address book into bbdb (no need to
abuse org for the purpose when there's already a perfectly good emacs
tool for the purpose).  We really need a good vCard-to-bbdb (and the
reverse) converter, though.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Daniel J. Sinder
On 07/11/2007 08:28 AM, Scott Jaderholm wrote:
> On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:
>> So here's a suggestion.  Why not support jump points (or jump lines),
>> which would be essentially be a syntactic marker that would tell
>> org-mode to jump to a specific line within an outline when visiting from
>> the agenda e.g. via follow mode.
>>
>> * My main project outline.
>>blah blah blah...
>>...
>>
>>- [ ] do something
>>- [ ] do this ++
>>- [ ] do something else
> 
> Hi Rick,
> 
> I'm guessing you have a really good reason for organizing your project
> using lists and check boxes instead of TODOs and headings, in which
> case this email isn't really useful--but, in the extremely unlikely
> event that you don't, I thought I'd note how this becomes a non-issue
> if you organize your work in the following way:
> 
> * My main project outline
> ** TODO do something
> ** NEXT do this
>   SCHEDULED: <2007-07-12 Thu>
> ** do something else
> 
> If you schedule individual tasks, instead of projects, then the agenda
> will take you right to your next item. If you schedule projects, then
> it's easy to see what is the next item to be done because it says
> NEXT.

If I may jump in here, I'll add that go a little further to aid with
multiple projects.  I use two SEQ_TODO's like this:
#+SEQ_TODO:  TODO NEXT INPROGRESS WAITING | DONE CANCELED
#+SEQ_TODO:  PROJECT | COMPLETE

Then my project trees (all in one file) look like this:
* PROJECT My main project outline  :Work:
** TODO do something
** NEXT do this
   SCHEDULED: <2007-07-12 Thu>
** TODO do something else
** WAITING someone else is working on this
** INPROGRESS Here's what I'm currently working on
* PROJECT Another project
** NEXT next for another project
** TODO do anothre thing

When I generate agendas, I can do a tags/TODO agenda on
'Work/PROJECT|NEXT'.  Through indentation, the agenda visually
groups everything so I can see what's next for each project.  It
looks something like this.

PROJECT My main project outline:Work:
.NEXT do this
PROJECT Another project:Work:
.NEXT next for another project

This is great for a weekly review, to make certain all project have
a defined NEXT action.

A tags/TODO agenda that includes all TODO keywords will also group
tasks by project, but will give broader scope.

(One down-side to this is that M-S- on the first TODO after a
PROJECT headline inserts a new PROJECT rather than a new TODO, which
I have to then change.  The alternative, of course, is to add at the
end of the list for a project.

Regards,
Dan



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


Re: [Orgmode] Column view questions

2007-07-11 Thread Daniel J. Sinder
On 07/10/2007 11:30 PM, Carsten Dominik wrote:
> 
> On Jul 11, 2007, at 0:58, Daniel J. Sinder wrote:
>>
>> Have you given any thought to the possibility of exporting column
>> view to HTML?  As nice as column view looks in an emacs-buffer, it's
>> not really accessible to others (especially if they don't use
>> emacs/org-mode).
> 
> No, not yet.  What would be useful?

One of two possibilities:
(1) Something similar to the export mechanism available for agendas
-- i.e., use htmlize on 'C-x C-w'.  Because column view is an
overlay, this may be harder than I imagine.

(2) An export mechanism that would generate a "pretty" HTML table
(to look like Scott's omni outliner example) starting from the
current heading.

Column view is too new for me to have a good usage scenario at this
point.  However one think I've thought of is using it to maintain
and publish a "points-of-contact" list for my group at work.

Dan



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


Re: [Orgmode] In-buffer bold face in headline levels

2007-07-11 Thread Daniel J. Sinder
On 07/10/2007 11:54 PM, Carsten Dominik wrote:
> OK, I am giving up on emphasis.  This is really too hard for
> my little brain.  Basically, I don't know how to make this
> work for all the requests I have gotten in the past,
> including
> 
> - allowing stacked fontification, like bold and italic
> - allowing characters that are emphasis markers inside
>   an emphasis, like */usr/lib*
> - allowing white space and newlines in the emphasis
>   like *this is all bold*,
> 
> I guess one could write a complex function to do the matching,
> but with a regular expression - like I am doing it now, I
> don't think I can make it work.

Can't say I blame you.  I know I couldn't do it with a regexp.

> Here is the deal:  If I get at least 5 tutorials full of
> screenshots by the end of the summer, I will give it
> yet another shot :-)
> Until then, we have to live with this issue.

TODO Org-mode tutorial with screenshots
C-c C-d [2007-09-02] 

*After you get the 5 tutorials*, here's my suggestion:
Have emphasis work for the simplest case (no stacking, no enclosed
markers, no white space, etc.).  For anything more complicated,
require LaTeX style markup (e.g., \textbf{this is all bold}), but
hide the markup when the closing brace is entered (like hiding
square brackets in links).  Would that be more reasonable?

Thanks,
Dan



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


Re: [Orgmode] done todos only date stamped, not date-time stamped

2007-07-11 Thread Brian van den Broek

Scott Jaderholm said unto the world upon 07/11/2007 12:09 PM:

Welcome Brian,

On 7/11/07, Brian van den Broek <[EMAIL PROTECTED]> wrote:

Unfortunately, I get only a datestamp, without time data (e.g., ``
CLOSED: [2007-07-11 Wed]'').


I did M-x apropos-variable RET time done RET and found the variable
org-log-done-with-time. If this variable is t (true) you should be
getting the expected behavior. Since that's the default value, I
suspect its not being set because org isn't loading correctly.



Hi all,

Thanks for the reply, Scott.

I had previously tried adding ``(setq org-log-done-with-time t)'' to 
my .emacs, but it didn't help.





(The tutorial's suggested ``(require 'org-install)'' produces an error
message:
``An error has occurred while loading `/home/brian/.emacs':

File error: Cannot open load file, org-install'')


You might need to put a line like this
(add-to-list 'load-path "/path/to/org")
where /path/to/org points to the directory storing org.elc.

After that you should be able to have (require 'org-install) and have
it work fine.


Since posting, I've seen that the info node ``1.2 Installation'' of 
the org-mode tree says:


``Then add to `.emacs':

 ;; This line only if org-mode is not part of the X/Emacs 
distribution.

 (require 'org-install)''

which makes me think it ought not to matter---org-mode was bundled 
with my emacs as installed.


Nevertheless, I tired what you suggested. I got the same ``File error: 
Cannot open load file, org-install'' line in my *Messages* buffer on 
loading emacs. Typing `locate org-install' at my shell prompt yielded 
no results. So, I don't seem to have the file anywhere.


So, unless I misunderstand something, that didn't help. Thanks, though :-)

Best,

Brian vdB


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


[Orgmode] Problem with org-show-todo-tree v5.02

2007-07-11 Thread Bernt Hansen
Hi Carsten,

I don't know if this has been reported yet but I didn't find it on the
list...

After loading the latest version of org-mode I get the following error
when trying to do C-c C-v (org-show-todo_tree)

"Must keep at least one level of headers"

v5.01 works so I've reverted to that for now.

GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2007-03-02 on pacem, modified by Debian
Org-mode version 5.02

Thanks for all the great work!

Regards,
Bernt



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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Rick Moynihan

Scott Jaderholm wrote:

On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:
Hi Rick,

I'm guessing you have a really good reason for organizing your project
using lists and check boxes instead of TODOs and headings, in which


Don't count on it :)


case this email isn't really useful--but, in the extremely unlikely
event that you don't, I thought I'd note how this becomes a non-issue
if you organize your work in the following way:

* My main project outline
** TODO do something
** NEXT do this
   SCHEDULED: <2007-07-12 Thu>
** do something else


Thanks for the suggestion, I can see how this structure might be better 
suited for this sort of thing, and I do structure much of my org-file 
like this, though I hadn't thought of using a NEXT keyword.


I think my problem is that I sometimes find myself torn between outlines 
 and lists/checkboxes.  Lists/checkboxes have some advantages over 
outlines, though outlines are obviously more powerful.  I find I tend to 
use lists/checkboxes for smaller tasks which are best done in sequence, 
and where I want to track the % of progress.  Is this possible with 
outlines?


e.g.

1. [X] Do this first
2. [X] Do this second
3. [ ] Do this collection of tasks third but in any order [66%]
   - [X] foo
   - [ ] bar
   - [X] baz
4. [ ] Do this fourth

I might well take your suggestions on board though and see how I get on. 
 This said I can still think of situations where I might want 
follow-mode in the agenda to move the point directly to a 
bookmarked\tagged jump-point within an outline.  For example, I often 
write quite extensive notes within an outline heading, and sometimes it 
might be nice to jump straight to where you were editing.


R.


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


Re: [Orgmode] done todos only date stamped, not date-time stamped

2007-07-11 Thread Scott Jaderholm

Welcome Brian,

On 7/11/07, Brian van den Broek <[EMAIL PROTECTED]> wrote:

Unfortunately, I get only a datestamp, without time data (e.g., ``
CLOSED: [2007-07-11 Wed]'').


I did M-x apropos-variable RET time done RET and found the variable
org-log-done-with-time. If this variable is t (true) you should be
getting the expected behavior. Since that's the default value, I
suspect its not being set because org isn't loading correctly.


To rule out conflicts with other settings in my .emacs, I have tried
launching emacs with a .emacs that reads, in its entirety:

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

(The tutorial's suggested ``(require 'org-install)'' produces an error
message:
``An error has occurred while loading `/home/brian/.emacs':

File error: Cannot open load file, org-install'')


You might need to put a line like this
(add-to-list 'load-path "/path/to/org")
where /path/to/org points to the directory storing org.elc.

After that you should be able to have (require 'org-install) and have
it work fine.

Cheers,
Scott


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


[Orgmode] done todos only date stamped, not date-time stamped

2007-07-11 Thread Brian van den Broek

Hi all,

I'm about a week into using emacs, so I might have overlooked 
something simple. :-)


I've been looking at org-mode and it seems like it will serve me well. 
 I do, however, have a bit of puzzlement over the feature whereby 
todo items can be marked as done.


According to the tutorial 
, when a todo item 
is marked as done via the C-c C-t keystrokes, it should get stamped 
with a date and time of completion (e.g., ``CLOSED: [2006-05-04 Thu 
11:29]'').


Unfortunately, I get only a datestamp, without time data (e.g., `` 
CLOSED: [2007-07-11 Wed]'').


To rule out conflicts with other settings in my .emacs, I have tried 
launching emacs with a .emacs that reads, in its entirety:


(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

(The tutorial's suggested ``(require 'org-install)'' produces an error 
message:

``An error has occurred while loading `/home/brian/.emacs':

File error: Cannot open load file, org-install'')

This did not resolve the problem.

I have no org.el on my system, and my weak, largely read-only lisp 
isn't up to the task of making sense of org.elc.


I am using GNU Emacs 22.0.91.1 with Org-mode version 4.56 on ubuntu 7.04.

I am aware that there are more recent version of org-mode available. 
But, as I am very new to emacs, I've never upgraded an emacs package, 
and thought I ought to check here first before forging ahead myself. I 
also am not enthusiastic about updating emacs itself and thus getting 
off my distro's package management. I am willing to try either if it 
is suggested here, though.


A good google and a browse of this lists archives didn't cast any 
light. So, any suggestions for how I can I get time information in the 
timestamp appended to done todo items?


Thanks and best,

Brian vdB



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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Eddward DeVilla

On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:

Apologies for my poor explanation but yes this is precisely what I'm
talking about.


You probably explained it well.  I'm pretty thick at times.


I've never knowingly used indirect buffers, and I'll certainly take a
look at them as I can see how I might find them useful.  I frequently
use org-narrow-to-subtree which I find useful for hiding irrelevant
details.  Incidentally it would be nice to be able to set follow mode to
automatically narrow to the current agenda selection.


I couldn't live without C-u,C-c,C-x,b.  :-)


I've personally taken to using follow mode, and having my org-mode Emacs
session split vertically into two panes, with the agenda on the right.
I then navigate my org file via the open agenda buffer with follow mode.
  I'm guessing that your method doesn't (easily) allow you to jump from
the agenda to your projects indirect buffer, which is a feature I quite
like using.


I like the idea of using agenda as a browser.  I like have multiple
windows open in a frame to look at multiple files (or projects) side
by side at once.  Early on, agenda got a little crazy if you used it
with multiple windows and I used to run org in the same session where
I did all my source editing.  I'd easily have 5 or more windows in a
frame.  I'll have to see if it will work if I have just two windows in
the agenda frame.


Good suggestions, and it did occur to me that I might be able to
implement this as a personal extension to org-mode, and I'm sure for
someone with good Emacs fu, this would take 5 minutes.  For me?  Well it
might be a nice motivating exercise to learn some more elisp :)


The key binding would be easy if there were a search subtree function.
Looking through org.el, I'm thinking there isn't.  Likewise, there
doesn't appear to be a hook for agenda following.  I could be wrong as
I'm still getting to know lisp and org.el.

Edd


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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Scott Jaderholm

On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:

So here's a suggestion.  Why not support jump points (or jump lines),
which would be essentially be a syntactic marker that would tell
org-mode to jump to a specific line within an outline when visiting from
the agenda e.g. via follow mode.

* My main project outline.
   blah blah blah...
   ...

   - [ ] do something
   - [ ] do this ++
   - [ ] do something else


Hi Rick,

I'm guessing you have a really good reason for organizing your project
using lists and check boxes instead of TODOs and headings, in which
case this email isn't really useful--but, in the extremely unlikely
event that you don't, I thought I'd note how this becomes a non-issue
if you organize your work in the following way:

* My main project outline
** TODO do something
** NEXT do this
  SCHEDULED: <2007-07-12 Thu>
** do something else

If you schedule individual tasks, instead of projects, then the agenda
will take you right to your next item. If you schedule projects, then
it's easy to see what is the next item to be done because it says
NEXT.

Cheers,
Scott


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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Rick Moynihan

Eddward DeVilla wrote:

On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:

Is this something people might find useful?  I personally find I spend a
lot of time trying to re-acquire my previous context within a particular
task, something like this might help.

Actually, after thinking about this; I realise that Emacs has bookmarks
(a feature I've not yet put to use) perhaps a better idea would be to
integrate these with org-mode and visiting the file via the agenda?

What do people think?


I'm not sure I understand it.  You place a token (you were using ++)
in the body under an outline item.  Then when you select the item from
agenda, instead of putting the cursor on that headline, it will look
for (the first?) line with that token in it's subtree.  If the token
does not exist in the subtree it just places the cursor on the
heading.  Is this what you are suggesting?  (If not then the rest of
my comment may be off.)


Apologies for my poor explanation but yes this is precisely what I'm 
talking about.



First, I avoid losing context in a different way.  I have one emacs
session that is always running to take care of 'administrative matter'
and it is were I do most of my org-mode/project planning and tracking.
 When I'm in the middle of doing something with a project, I have it's
tree open in an indirect buffer.  I have one frame with just agenda's
todo list in it for reporting and another frame with three windows (or
so) so I can look at a few things at once.  Since each project is in
it's own buffer, I can get context just be where I left the cursor.
For my uses, what I would love is a way to have org-mode remember how
a subtree was folded so I could hide a subtree and then reopen it
later with all of it children exposed or hidden as they were before.
I like to use hiding for context in a project, but I get by without
it.


I've never knowingly used indirect buffers, and I'll certainly take a 
look at them as I can see how I might find them useful.  I frequently 
use org-narrow-to-subtree which I find useful for hiding irrelevant 
details.  Incidentally it would be nice to be able to set follow mode to 
automatically narrow to the current agenda selection.


I've personally taken to using follow mode, and having my org-mode Emacs 
session split vertically into two panes, with the agenda on the right. 
I then navigate my org file via the open agenda buffer with follow mode. 
 I'm guessing that your method doesn't (easily) allow you to jump from 
the agenda to your projects indirect buffer, which is a feature I quite 
like using.



Getting back to your suggestion, I have an idea.  First pick a good
token.  I don't care for ++ because it means something in C code, but
I think you could get a way with picking your own token here.  Next, I
wonder if there is a search subtree?  I didn't see it in on a quick
search of the manual, but I could have missed it if it exists.  If it
doesn't exist, I think it might be handy here and in other places.
With a subtree search, you could search out the token after agenda
takes you to the project tree.  You could make a custom key binding to
search for you token.  Also, if there is a hook that runs after agenda
takes you to a heading, you might be able to put this search there.

That all depends on a few things.  Does subtree search exist or should
it?  Is a key binding good enough for a find-next-jump-point function?
 Is there (or should there be) a hook that runs after agenda takes you
to a heading?


Good suggestions, and it did occur to me that I might be able to 
implement this as a personal extension to org-mode, and I'm sure for 
someone with good Emacs fu, this would take 5 minutes.  For me?  Well it 
might be a nice motivating exercise to learn some more elisp :)


Anyway, it's always good to have a discussion about how people are using 
and extending org-mode.


R.


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


Re: [Orgmode] Suggestion: Jump points

2007-07-11 Thread Eddward DeVilla

On 7/11/07, Rick Moynihan <[EMAIL PROTECTED]> wrote:

Is this something people might find useful?  I personally find I spend a
lot of time trying to re-acquire my previous context within a particular
task, something like this might help.

Actually, after thinking about this; I realise that Emacs has bookmarks
(a feature I've not yet put to use) perhaps a better idea would be to
integrate these with org-mode and visiting the file via the agenda?

What do people think?


I'm not sure I understand it.  You place a token (you were using ++)
in the body under an outline item.  Then when you select the item from
agenda, instead of putting the cursor on that headline, it will look
for (the first?) line with that token in it's subtree.  If the token
does not exist in the subtree it just places the cursor on the
heading.  Is this what you are suggesting?  (If not then the rest of
my comment may be off.)

First, I avoid losing context in a different way.  I have one emacs
session that is always running to take care of 'administrative matter'
and it is were I do most of my org-mode/project planning and tracking.
When I'm in the middle of doing something with a project, I have it's
tree open in an indirect buffer.  I have one frame with just agenda's
todo list in it for reporting and another frame with three windows (or
so) so I can look at a few things at once.  Since each project is in
it's own buffer, I can get context just be where I left the cursor.
For my uses, what I would love is a way to have org-mode remember how
a subtree was folded so I could hide a subtree and then reopen it
later with all of it children exposed or hidden as they were before.
I like to use hiding for context in a project, but I get by without
it.

Getting back to your suggestion, I have an idea.  First pick a good
token.  I don't care for ++ because it means something in C code, but
I think you could get a way with picking your own token here.  Next, I
wonder if there is a search subtree?  I didn't see it in on a quick
search of the manual, but I could have missed it if it exists.  If it
doesn't exist, I think it might be handy here and in other places.
With a subtree search, you could search out the token after agenda
takes you to the project tree.  You could make a custom key binding to
search for you token.  Also, if there is a hook that runs after agenda
takes you to a heading, you might be able to put this search there.

That all depends on a few things.  Does subtree search exist or should
it?  Is a key binding good enough for a find-next-jump-point function?
Is there (or should there be) a hook that runs after agenda takes you
to a heading?

Edd


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


Re: [Orgmode] Makefile fix?

2007-07-11 Thread Miguel A. Figueroa-Villanueva

On 7/11/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:
> Oops.  lispdir won't expand due to the single quotes.  Maybe this will
> work a little bit better.
>
> BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path)
> \"$(lispdir)\")"
>
> Edd
That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten


Now it works. I'm not sure if there is a prettier way to do it, but to
me it seems like the right way.

Thanks to you both.

--Miguel


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


[Orgmode] Suggestion: Jump points

2007-07-11 Thread Rick Moynihan

Carsten Dominik wrote:


On Jul 6, 2007, at 18:28, Rick Moynihan wrote:

Agreed.  My gut feeling is that they fulfill largely different 
purposes.  The problem is that I tend to make a decision to structure 
something with lists & checkboxes, and later on discover I want an 
item in the list to appear inside the agenda.


In such a case I usually make the headline above the checkbox
list a TODO and have that show up in the agenda.  From there
it is only one or two TAB presses to the checkboxes.

- Carsten


I too have tried this, but it means if you start editing your lists (and 
if they're numbered) the list numbers get reset which can be annoying.


I sometimes have quite long lists within outlines, and I guess the 
problem is that I know what project I want to work on yet I want to 
quickly find the item within it which I'd previously identified as 
tackling next.  Sometimes when returning to such a list it takes me a 
while to figure out which task I was supposed to tackling next.


So here's a suggestion.  Why not support jump points (or jump lines), 
which would be essentially be a syntactic marker that would tell 
org-mode to jump to a specific line within an outline when visiting from 
the agenda e.g. via follow mode.


* My main project outline.
  blah blah blah...
  ...

  - [ ] do something
  - [ ] do this ++
  - [ ] do something else
  ...

I'm not too bothered about the syntax, but here the ++ indicates the 
line which the point should be placed on within that outline.


Some simple interactive commands could be written to reset the jump 
point to a new line within that outline.  This would simply remove any 
existing jump-point and insert a new one at the point.  Naturally this 
command might want to alert you about jump-point removal, and if there 
were multiple points (accidentally) defined within a single outline it 
might warn you of this, perhaps moving you into an interactive mode to 
clean them up and set the point to where you wanted.


Is this something people might find useful?  I personally find I spend a 
lot of time trying to re-acquire my previous context within a particular 
task, something like this might help.


Actually, after thinking about this; I realise that Emacs has bookmarks 
(a feature I've not yet put to use) perhaps a better idea would be to 
integrate these with org-mode and visiting the file via the agenda?


What do people think?

R.


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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Carsten Dominik




Just one more question. ;-}
I would like to display the days between rows. I found time-date.el, 
but

this only works with:
The five data representations used are the following:

date
An RFC822 (or similar) date string. For instance: "Sat
Sep 12 12:21:54 1998 +0200".

time
An internal Emacs time. For instance: (13818 26466).

seconds
A floating point representation of the internal Emacs
time. For instance: 905595714.0.

days
An integer number representing the number of days since
0101. For instance: 729644.

decoded time
A list of decoded time. For instance: (54 21 12 12 9
1998 6 t 7200).

Is there a way to work with dates like 2007-09-11?


You can use parse-time-string which can handle this.  It returns
a decoded time.

Even more general:
Org-mode has a very general time parsing function, org-read-date.  It
gobbles pretty much anything that looks like a date and/or date.
It normally reads from the user input, but you can also make it
read from a string:

(org-read-date t t "2007-02-03")

This will return an internal emacs time, time-date can take it from
there, for example use time-to-days to get an absolute day number.

- Carsten



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Cecil Westerhof
Op wo, 11-07-2007 te 12:19 +0200, schreef Carsten Dominik:
> > That works. I hoped that it was possible to see you are on the first
> > line after a hline, but this is good enough.
> 
> Of course this is possible, you are using Lisp:
> 
> (defun check-if-after-hline ()
>   (save-excursion
>(beginning-of-line 0)
>(looking-at org-table-hline-regexp)))

Okay, now it is:

|---++-+---+-++---+--+|
|   |  datum | kmstand | km's  | prijs/l | liters | 
prijs | prijs/km |   km/l |

|---++-+---+-++---+--+|
| # ||  155111 |   | || 
  |  ||
| # | 2007-07-09 |  156146 | 1035  |   102.2 |  62.25 | 
63.62 |6.147 | 16.627 |
| # | 2007-07-11 |6953 | Verkeerde kmstand | || 
  |  ||
| # || |   | || 
  |  ||

|---++-+---+-++---+--+|
#+TBLFM: $4='(if (and (nz @-1$3) (nz $3)) (if (> $3 @-1$3) (- $3 @-1$3) 
(if (not (check-if-after-hline)) "Verkeerde kmstand" "")) "");N::$7='(if (and 
(nz $5) (nz $6)) (format "%.2f" (/ (* $5 $6) 100)) "");N::$8='(if (and (nz $4) 
(nz $7)) (format "%.3f" (/ (* $7 100) $4)) "");N::$9='(if (and (nz $4) (nz $6)) 
(format "%.3f" (/ $4 $6)) "");N
This looks perfect.

Just one more question. ;-}
I would like to display the days between rows. I found time-date.el, but
this only works with:
The five data representations used are the following:

date
An RFC822 (or similar) date string. For instance: "Sat
Sep 12 12:21:54 1998 +0200". 

time
An internal Emacs time. For instance: (13818 26466). 

seconds
A floating point representation of the internal Emacs
time. For instance: 905595714.0. 

days
An integer number representing the number of days since
0101. For instance: 729644. 

decoded time
A list of decoded time. For instance: (54 21 12 12 9
1998 6 t 7200).

Is there a way to work with dates like 2007-09-11?

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Carsten Dominik


On Jul 11, 2007, at 11:02, Cecil Westerhof wrote:


Op wo, 11-07-2007 te 10:49 +0200, schreef Carsten Dominik:

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.


That works. I hoped that it was possible to see you are on the first
line after a hline, but this is good enough.


Of course this is possible, you are using Lisp:

(defun check-if-after-hline ()
(save-excursion
  (beginning-of-line 0)
  (looking-at org-table-hline-regexp)))

- Carsten



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Cecil Westerhof
Op wo, 11-07-2007 te 10:49 +0200, schreef Carsten Dominik:
> 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.

That works. I hoped that it was possible to see you are on the first
line after a hline, but this is good enough.


> > 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.

Better not then I think.


> > 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.

Cetrainly not. Just nice to have. Maybe something to try myself to
build.

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Carsten Dominik


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



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Cecil Westerhof
Op wo, 11-07-2007 te 08:15 +0200, schreef Carsten Dominik:
> If you want to understand why things come out the way they
> do, use formular debugging (this is an option in the menu, but
> cou can also toggle it with `C-C {').  When you then execute
> calculations in the table (for example with `C-u C-c C-c')
> you will get detailed information about variable substitution,
> and you will see the final expression that gets evaluated.

That is a good tip. ;-}


> For example, you are trying things like
> 
>(and $1 $2 ...
> 
> but of course both the empty string and the number 0 are
> "true" in Lisp, the only thing false in Lisp is "nil".

That explains my problems.


> If you want to fix it, you can, by *really* taking control.
> For example, define the following function that tests
> if a value is not zero
> 
> (defun nz (n) (not (= n 0.)))
> 
> and then write your table like this:
> 
>|-+--+-++---+--+|
>| kmstand | km's | prijs/l | liters | prijs | prijs/km |   km/l |
>|-+--+-++---+--+|
>|  155111 |  | ||   |  ||
>|  156146 | 1035 |   102.2 |  62.25 | 63.62 |6.147 | 16.627 |
>| |  | ||   |  ||
>|-+--+-++---+--+|
> #+TBLFM: $2='(if (and (nz @-1$-1) (nz $1) (> $1 @-1$-1)) (- $1 @-1$-1) 
> "");N::$5='(if (and (nz $3) (nz $4)) (format "%.2f" (/ (* $3 $4) 100)) 
> "");N::$6='(if (and (nz $2) (nz $5)) (format "%.3f" (/ (* $5 100) $2)) 
> "");N::$7='(if (and (nz $2) (nz $4)) (format "%.3f" (/ $2 $4)) "");N

That works perfect.


> Yes, those equations look longish - use the formula
> editor to edit them.

That is also a nice tool yes.


> Also, consider to put the "#" marker in the first column,
> to get this table to recompute automatically while
> you step through with TAB.  Use C-# in the first data line
> to insert the "#" if you want to make sure that your
> existing formulas are modified to reflect the new
> column numbers.  The result will be this:

That is also very usefull.


> Hope this helps.

It certainly did.

I made another improvement. It would be nice to have a notification when
there is a problem with kmstand.
I made the folowing:

|---++-+---+-++---+--+|
|   |  datum | kmstand | km's  | prijs/l | liters | 
prijs | prijs/km |   km/l |

|---++-+---+-++---+--+|
| # ||  155111 | Verkeerde kmstand | || 
  |  ||
| # | 2007-07-09 |  156146 | 1035  |   102.2 |  62.25 | 
63.62 |6.147 | 16.627 |
| # ||6953 | Verkeerde kmstand | || 
  |  ||
| # || |   | || 
  |  ||

|---++-+---+-++---+--+|
#+TBLFM: $4='(if (and (nz @-1$3) (nz $3)) (if (> $3 @-1$3) (- $3 @-1$3) 
"Verkeerde kmstand") "");N::$7='(if (and (nz $5) (nz $6)) (format "%.2f" (/ (* 
$5 $6) 100)) "");N::$8='(if (and (nz $4) (nz $7)) (format "%.3f" (/ (* $7 100) 
$4)) "");N::$9='(if (and (nz $4) (nz $6)) (format "%.3f" (/ $4 $6)) "");N
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?

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.

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?

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Cecil Westerhof
Op di, 10-07-2007 te 20:38 +0200, schreef Cecil Westerhof:
> I have a table like:
> |-+-+-++---+--+|
> | kmstand |km's | prijs/l | liters | prijs | prijs/km |   km/l |
> |-+-+-++---+--+|
> |  155111 |   0 | ||  0.00 |   -0.000 |  0.000 |
> |  156146 |1035 |   102.2 |  62.25 | 63.62 |6.147 | 16.627 |
> | | -156146 | ||  0.00 |   -0.000 |  0.000 |
> |-+-+-++---+--+|
> #+TBLFM: $2='(and @-1$-1 $1 (- $1 @-1$-1));N::$5='(and $3 $4 (/ (* $3 
> $4) 100));N%.2f::$6='(and $2 $5 (/ (* $5 100) $2));N%.3f::$7='(and $2 $4 (/ 
> $2 $4));N%.3f
> 
> When there is nothing to display, there is now a '0' displayed, but I
> would prefer it to be empty. Is this possible?
> Also, why is prijs/km displayed as '-0.000'?
> And why is the last field of km's displayed as  '-156146'? I expected
> '0'.

I have been playing a little bit more and made this:

|+-++++-+-++---+--+|
|  datum | kmstand ||||km's | prijs/l | 
liters | prijs | prijs/km |   km/l |

|+-++++-+-++---+--+|
||  155111 | 155111 | 155111 | 155111 |   0 | | 
   |  0.00 |   -0.000 |  0.000 |
| 2007-07-09 |  156146 | 155111 | 156146 | 156146 |1035 |   102.2 | 
 62.25 | 63.62 |6.147 | 16.627 |
|| | 156146 |  0 |  0 | -156146 | | 
   |  0.00 |   -0.000 |  0.000 |
|| |  0 |  0 |  0 |   0 | | 
   |  0.00 |   -0.000 |  0.000 |

|+-++++-+-++---+--+|
#+TBLFM: [EMAIL PROTECTED];N::$4=$2::$5='(and @-1$2 $2);N::$6='(if (and 
@-1$2 $2) (- $2 @-1$2) (0));N::$9='(and $7 $8 (/ (* $7 $8) 
100));N%.2f::$10='(and $6 $9 (/ (* $9 100) $6));N%.3f::$11='(and $6 $8 (/ $6 
$8));N%.3f

If you look at the km's column, I would expect that in the thirth row 0
would be displayed. (The else part.) But the negative value of @-1$2 is
displayed. I think this is a bug?

Also when adding the fields between kmstand an km's in the km formula
@-1$-1 did not change. I would expect it to change to @-1$-4. Or is
there a reason for this behaviour?

-- 
Cecil Westerhof <[EMAIL PROTECTED]>



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


Re: [Orgmode] 5.02 org crashes when editing TODO status in the column view mode

2007-07-11 Thread Carsten Dominik

No, I cannot reproduce it so far.  But then, you have not
really told us what you did.

Why don't you try to come up with a small example file
and then describe the steps that lead you to the "crash".
Key-by-key, and also describing where the cursor is
when you call the different commands.

- Carsten

On Jul 10, 2007, at 18:41, Zhichao Hong wrote:


Hi,

I just upgraded to 5.02 and enjoyed the column view mode.  However, it  
crashes when I tried to update the TODO status in the column view  
mode.  The emacs version is 22.1 on Windows XP SP2.  Has anyone seen  
this behavior?


Zhichao

--  
Zhichao Hong, CSDP
[EMAIL PROTECTED] 
_

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



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



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


Re: [Orgmode] how to clear computed values

2007-07-11 Thread Carsten Dominik


On Jul 10, 2007, at 20:38, Cecil Westerhof wrote:


I have a table like:

|-+-+-++---+--+|
| kmstand |km's | prijs/l | liters | prijs | prijs/km |   
km/l |

|-+-+-++---+--+|
|  155111 |   0 | ||  0.00 |   -0.000 |  
0.000 |
|  156146 |1035 |   102.2 |  62.25 | 63.62 |6.147 | 
16.627 |
| | -156146 | ||  0.00 |   -0.000 |  
0.000 |

|-+-+-++---+--+|
#+TBLFM: $2='(and @-1$-1 $1 (- $1 @-1$-1));N::$5='(and $3 $4 
(/ (* $3 $4) 100));N%.2f::$6='(and $2 $5 (/ (* $5 100) 
$2));N%.3f::$7='(and $2 $4 (/ $2 $4));N%.3f


When there is nothing to display, there is now a '0' displayed, but I
would prefer it to be empty. Is this possible?
Also, why is prijs/km displayed as '-0.000'?
And why is the last field of km's displayed as  '-156146'? I expected
'0'.


If you want to understand why things come out the way they
do, use formular debugging (this is an option in the menu, but
cou can also toggle it with `C-C {').  When you then execute
calculations in the table (for example with `C-u C-c C-c')
you will get detailed information about variable substitution,
and you will see the final expression that gets evaluated.

For example, you are trying things like

  (and $1 $2 ...

but of course both the empty string and the number 0 are
"true" in Lisp, the only thing false in Lisp is "nil".

If you want to fix it, you can, by *really* taking control.
For example, define the following function that tests
if a value is not zero

(defun nz (n) (not (= n 0.)))

and then write your table like this:

  |-+--+-++---+--+|
  | kmstand | km's | prijs/l | liters | prijs | prijs/km |   km/l |
  |-+--+-++---+--+|
  |  155111 |  | ||   |  ||
  |  156146 | 1035 |   102.2 |  62.25 | 63.62 |6.147 | 16.627 |
  | |  | ||   |  ||
  |-+--+-++---+--+|
#+TBLFM: $2='(if (and (nz @-1$-1) (nz $1) (> $1 @-1$-1)) (- $1 @-1$-1) 
"");N::$5='(if (and (nz $3) (nz $4)) (format "%.2f" (/ (* $3 $4) 100)) 
"");N::$6='(if (and (nz $2) (nz $5)) (format "%.3f" (/ (* $5 100) $2)) 
"");N::$7='(if (and (nz $2) (nz $4)) (format "%.3f" (/ $2 $4)) "");N


Yes, those equations look longish - use the formula
editor to edit them.

Also, consider to put the "#" marker in the first column,
to get this table to recompute automatically while
you step through with TAB.  Use C-# in the first data line
to insert the "#" if you want to make sure that your
existing formulas are modified to reflect the new
column numbers.  The result will be this:

  |---+-+--+-++---+--+|
  |   | kmstand | km's | prijs/l | liters | prijs | prijs/km |   km/l |
  |---+-+--+-++---+--+|
  | # |  155111 |  | ||   |  ||
  | # |  156146 | 1035 |   102.2 |  62.25 | 63.62 |6.147 | 16.627 |
  | # | |  | ||   |  ||
  |---+-+--+-++---+--+|
#+TBLFM: $3='(if (and (nz @-1$-1) (nz $2) (> $2 @-1$-1)) (- $2 @-1$-1) 
"");N::$6='(if (and (nz $4) (nz $5)) (format "%.2f" (/ (* $4 $5) 100)) 
"");N::$7='(if (and (nz $3) (nz $6)) (format "%.3f" (/ (* $6 100) $3)) 
"");N::$8='(if (and (nz $3) (nz $5)) (format "%.3f" (/ $3 $5)) "");N


Hope this helps.

- Carsten

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



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


Re: [Orgmode] Column view questions

2007-07-11 Thread Carsten Dominik


On Jul 11, 2007, at 0:58, Daniel J. Sinder wrote:


I already have visions of moving my address book into org.  I've set
my sights on finally learning Elisp by writing a vCard-to-org
function (and the reverse).

How well does generating column view scale for hundreds of headlines?


Not very well, unfortunately, it gets dog slow.  You can
keep things manageable structuring you address book into
a hierarchy and only invoking column view for a small
part of the tree.

- Carsten



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


Re: [Orgmode] Makefile fix?

2007-07-11 Thread Carsten Dominik

That seems to work ok.  Miguel, can you confirm?
I am not sure if all versions of make have the
control structure you have been proposing?

- Carsten

On Jul 11, 2007, at 6:15, Eddward DeVilla wrote:


Oops.  lispdir won't expand due to the single quotes.  Maybe this will
work a little bit better.

BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) 
\"$(lispdir)\")"


Edd

On 7/10/07, Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]> wrote:

Hello Carsten,

Yep, I guess I missed that point... I tried your idea below, but it
didn't work on my end. If it works then maybe it is a more robust
solution. However, the following code worked for me for emacs and
xemacs. Note that it assumes that the EMACS variable is either emacs
or xemacs.

# Name of your emacs binary
EMACS=emacs

# Using emacs in batch mode.
ifeq ($(EMACS),xemacs)
  BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
else
  BATCH=$(EMACS) -batch -q
endif

Hope this helps.

--Miguel

On 7/10/07, Carsten Dominik <[EMAIL PROTECTED]> wrote:
> You are right, this would be better.  However, the same line
> then would not work for Emacs, so we need something still
> better.  Maybe something like
>
> BATCH=$(EMACS) -batch -q
> -eval '(add-to-list 'load-path "$(lispdir)")'
>
> but that is still difficult with all the quoting and escaping of
> quoting.  Does anyone here know how to make this work?
>
> - Carsten
>
> On Jul 8, 2007, at 20:21, Miguel A. Figueroa-Villanueva wrote:
>
> > Hello Everyone,
> >
> > First of all thanks for creating such a great tool!! Kudos 
Dominik!!

> >
> > Now, I updated orgmode and had minor problems with the 
installation.
> > The problem was because I use XEmacs so it requires the 
noutline.el

> > installed. Since I edited the following entries:
> >
> > # Where local software is found
> > prefix=/root_dir/svn/usr/local
> >
> > # Where local lisp files go.
> > lispdir = $(prefix)/share/emacs
> >
> > when I type 'make install-noutline' it installs it in $(lispdir),
> > which is what I wanted (i.e., not in the standard lisp 
directory). The
> > $(lispdir) is of course added to the load-path in my init.el, but 
for

> > the remaining compilation of org.el it won't know to look for
> > noutline.el in there.
> >
> > Now, since we need noutline.el to compile org.el for XEmacs and we
> > just installed it in $(lispdir), shouldn't the following line:
> >
> > BATCH=$(EMACS) -batch -q
> >
> > read like this instead:
> >
> > BATCH=$(EMACS) -batch -q -l $(lispdir)/noutline
> >
> > That is where my problem was and by making the change above it was
> > fixed. Notice that if $(lispdir) is set to the standard lisp 
directory

> > then the problem won't arise.
> >
> > Well, I hope that this helps in case others encounter the same 
problem.

> >
> > Thanks again,
> > --Miguel
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
> >
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
>
>


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






--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



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


Re: [Orgmode] Column view questions

2007-07-11 Thread Carsten Dominik


On Jul 11, 2007, at 0:58, Daniel J. Sinder wrote:


Have you given any thought to the possibility of exporting column
view to HTML?  As nice as column view looks in an emacs-buffer, it's
not really accessible to others (especially if they don't use
emacs/org-mode).


No, not yet.  What would be useful?

- Carsten



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


[Orgmode] Column View and hidestars

2007-07-11 Thread Carsten Dominik

If you are using the "hidestars" STARTUP option or the variable
org-hide-leading-stars, column view does currently not
work in headlines that are not level 1.  Thanks to
Scott Otterson for reporting this problem.  Will be fixed
in 5.03.

- Carsten



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


Re: [Orgmode] In-buffer bold face in headline levels

2007-07-11 Thread Carsten Dominik

OK, I am giving up on emphasis.  This is really too hard for
my little brain.  Basically, I don't know how to make this
work for all the requests I have gotten in the past,
including

- allowing stacked fontification, like bold and italic
- allowing characters that are emphasis markers inside
  an emphasis, like */usr/lib*
- allowing white space and newlines in the emphasis
  like *this is all bold*,

I guess one could write a complex function to do the matching,
but with a regular expression - like I am doing it now, I
don't think I can make it work.

Here is the deal:  If I get at least 5 tutorials full of
screenshots by the end of the summer, I will give it
yet another shot :-)
Until then, we have to live with this issue.

- Carsten

P.S.:  Of course: thank you for reporting the issue.  Its just
too hard to fix.

On Jul 11, 2007, at 0:45, Daniel J. Sinder wrote:


I think there is a bug in setting faces for *bold* in headlines.
I've tested this in 5.01 and 5.02

* Bold in a headline *does work* at the top level
** But *does not work* at the second level
*** It also *does not work* at the third level
 But *does work* again on all lower levels

This is only broken for in-buffer emacs faces.  Bold in HTML export
works for all headline levels.

Dan



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




--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



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


[Orgmode] bbdb keywords in remenber template

2007-07-11 Thread Maxim Loginov
hi all

can anybody explain how %:name keyword is working in remember template?
using this keyword in the template is not expanded, but produce only %:name
string. let's say I have:
(setq org-remember-templates
  '((?p "* %:name")))
is that incorrect usage or bug?

thanks
Maxim



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