jed-users mailing list

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

Re: Brief and keydefs


G. Milde wrote:

Marko, could you add PC key definitions to x-keydefs.sl instead?
(and upload to the jedmodes CVS?)

Watch for % TODO: add the IBMPC definitions here

(I thought the X in x-kedefs was for XWindows).

1.
The TODO is inside an #ifdef and the problem persist. Since I use
FLJED and wjed for testing, the library is shared between
two distinct systems, so if I precompile x-keydefs, it will
work only for one system.

This problem could be fixed if we had a function in SLang that
would tell us if a preprocessor symbol is defined:

  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.

This way:
  - keydefs.sl would only be a few lines long
  - every system would have the keys defined separately
  - if different system would be using the same library, there
    would be no conflicts and every system would load just what
    it needs and nothing more.

2.
I have prepared a set of macros to generate xkeys.c and XX-keydefs.sl
from a comma separated file (exported from Open Document spreadsheet
where I manage all the keysyms for fljed).

I will publish all the necessary files on jedmodes in a week or
two when I organize the keysyms for X and IBMPC in ODS.

Some time back I sent John some code that would enable jed to
x_set_keysym(X, ...) for an arbitrary X (0x0000 - 0xffff). I
am using this code in FLTK and I am able to remap keys
such as Ctrl-M that conflicts with Return (John suggested
that it would be best for Return to output "^M", so we
have to remap Ctrl-M).

3.
Because the files are autogenerated it is a hard work to
add just the differences into x-keydefs.

Marko




--------------------------
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]