jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

A simpler autoload


Hello!

Here is a short macro that might help when autoloading files.
You write the filename only once, ant then list all the macros that
you wish to autoload from it.

Marko

%!% \usage{Void autoload_file (String file, String macro, String macro,
...)}
define autoload_file ()
{
   variable file = "", macro = "", nmacros = _NARGS-1;
   _stk_roll (-(nmacros + 1));
   file = ();
   loop (nmacros)
   {
      macro = ();
      autoload (macro, file);
   }
}

site.sl might be much simpler with this

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]