Hi, > > When title contains some lisp code, it is evaluated after the content > > is evaluated. However, when editing the file (C-cC-l), the title will > > initially show 'Invalid Lisp Code' error. > > > > testcase: > > --- > > #title <lisp>value</lisp> > > <lisp>(progn (setq value 10) "" )</lisp> > > > > hello world <lisp>value</lisp> > > Hmm, I hadn't considered this use case before. Do you use the <lisp> > tag for #title on every page, or just some of them? Do you expect the > <lisp> tag to be evaluated when publishing, or left verbatim (but with > the angle brackets escaped)?
I expect <lisp> tag to be evaluated. I use it so that it is possible to configure the values for the page in one place. '#title' seems to be evaluated last, and thus putting the setq in the #title has never worked. This is why <lisp> to do the setq is on the second line. Try the following for a more lively example: --- #title Meeting number <lisp>number</lisp>: <lisp>year</lisp>-<lisp>month</lisp>-<lisp>day</lisp> <lisp>(progn (setq year 2007 month 12 date 15 number 10) "" )</lisp> This is meeting number <lisp>number</lisp> .... You are expected to turn in your entry form by <lisp>(- date 2)</lisp> --- regards, junichi -- [EMAIL PROTECTED],netfort.gr.jp} Debian Project -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]