Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!216.196.98.142.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 16 Jul 2012 11:28:41 -0500 Date: Mon, 16 Jul 2012 12:28:14 -0400 From: Dick Margulis User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 Newsgroups: comp.text.interleaf Subject: Re: Creating TOC/Index using a lisp script References: <4fdf683c-0d15-4d06-bb14-e9a1ee6fcaa7@googlegroups.com> In-Reply-To: <4fdf683c-0d15-4d06-bb14-e9a1ee6fcaa7@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 21 X-Trace: sv3-AiSaMmgUJRY/GhQ5EPL2IFRVzpr8G6haP+/eOnF0d9LgrlGiJl8Tj6ODNToi6BOXzRmdPLJi/e+6JKp!rB7mv0GmRZxg9JoMsP4gv2at93nLBfOKIbGXZCvGAyskjzzB7YHLjPevPXmDbGQ2Nq1F/LUlPXhV!lCoMF5POhFk= X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2023 Xref: csiph.com comp.text.interleaf:8 On 7/16/2012 10:57 AM, RalfN wrote: > > (defun create-toc-for-all (container) > ;creates a TOC for all docs in the conainer > (let (children child) > ;get all the unselected children > (setq children (dt-children container :not-selected)) > ;select them > (while (setq child (pop children)) > (tell child mid:set-props :selected t)) > ;create table of contents for all chidren > (toc-create-selected container) > )) > > Unfortunately it does not work. It seems that there happens nothing. > Are there any ideas to make it work? > If you actually copied and pasted your script into your post (rather than rekeying it), it's possible that the typo in the third line from the bottom ("chidren" instead of "children") is the cause of your problem.