jed-users mailing list

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

Re: Brief and keydefs


Marko Mahnic <marko.mahnic@xxxxxxxx> wrote:
>   if (is_symbol_defined("FLTK")) () = evalfile ("fl-keydefs");
>   else if (is_symbol_defined("IBMPC_SYSTEM")) () = evalfile ("pc-keydefs");
>   ...
>
>The function could be implemented in SLang using __get_defined_symbols,
>but it would be slow.

Why would it be slow?  Consider:

  slsh> Symbols = [__get_defined_symbols(), pop()];
  slsh> define is_symbol_defined (sym) {return any(sym==Symbols);}
  slsh> tic; loop (1000000) x=is_symbol_defined("VMS"); toc;
  7.47544

This shows that the execution time is less than 8 microseconds (on a
pentium III).

[...]
>Some time back I sent John some code that would enable jed to
>x_set_keysym(X, ...) for an arbitrary X (0x0000 - 0xffff). I

I added a code to based upon your patch to Xjed a while back.  As a
result, the stock version of Xjed supports arbitrary keysyms.

Thanks,
--John

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


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