2 @files = glob("lisp/org-*.el");
3 unshift @files,"lisp/org.el";
5 print "* Hooks and Function variables\n\n";
7 foreach $file (@files) {
8 ($file1 = $file) =~ s
|.*/||;
9 open IN
,"<$file" or die "Cannot open file $file\n";
11 if (/^\((defvar|defcustom)\s+(org-.*?-(hook|functions?)\b)/) {
14 $_=<IN
> while (not m/^\s*"/);
16 while (not m/(?<!\\)"\)?\s*$/) {
21 $doc =~ s/"\)?\s*\Z//;
23 print "Defined in: /$file1/\n";
24 print "#+begin_example\n";
25 @lines = split(/\n/,$doc);
26 @lines = map { $_ = " " . $_ } @lines;
27 $doc = join("\n",@lines);
29 print "#+end_example\n";