jed-users mailing list

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

Re: gold key for edt mode


Hi Guenter,

I may have been not completely clear, so here is what I do.
I run putty on my windows computer and login to a Linux host.
Then I start xjed. So xjed runs on the Linux host and it displays
its window on my "xterminal", in this case its the windows computer.

In .jedrc I have:
...
#ifdef XWINDOWS
  require("x-keydefs");
  x_set_keysym(0xFFAA, 0, Key_KP_Multiply);
  x_set_keysym(0xFFAB, 0, Key_KP_Add);
  x_set_keysym(0xFFAD, 0, Key_KP_Subtract);
  x_set_keysym(0xFFAF, 0, Key_KP_Divide);
#endif
...

The message I get is:
 S-Lang syntax error: expecting a PRIMARY, found # in line 216

This is the line with #stop ...
I should not get this message because I run in Linux.
The remaining part of .jedrc is not executed.

Thei.

+-------------------------------------------------------------------+

On Tue, 31 Jan 2006, G. Milde wrote:

On 30.01.06, Thei Wijnen wrote:
Hi,

I am running xjed on a linux platform and I do not have precompiled
files. That is why I commented this line as "%# stop".

Preprocessor directives are accounted for

 * at preprocess time (this might cause trouble with preprocessed files
   used for different "flavours" of jed (xjed, wjed, Kosole, xterm,
   DOS-Prompt)

 * at evaluation time, if the *.sl file is newer as the *.slc file (a
   nonexisting *.slc file is indefinitely old).


I tried x-keydefs.sl and started xjed (on a putty terminal
connected to linux and xjed runs on my windows computer.

Does it *run* under Windows or is it displayed on your windows computer but
runs on the linux host.

Starting however fails on the lines:
#ifdef IBMPC_SYSTEM
# stop                 <----------------
#endif

What is the error message if it fails?

What is the result if you copy the following lines to a scratch buffer and
call M-x evalbuffer on them:

#ifdef IBMPC_SYSTEM
message("I am running under Windows or DOS");
#else
message("I am not running under (Win)DOS");
#endif

I commented that line (%# stop) and only now it works!
What is the purpose of the that line ?

AFAIK it stops loading (compiling) the slang file.
It sould stop compiling only when you are runing jed on
DOS/Windows platform (#ifdef IBMPC_SYSTEM).

Exactly. (That is also what the comment says
% abort here, if we are on DOS or Windows
)

The code following the #stop has effect only on xjed. However, ...

% ... (we cannot use #ifdef XJED,
% as the byte-compiled file should be usable with jed on a console as well.)

Still, the preprocessor directive should save a bit of startup time and
memory if x-keydefs.sl is used on (Win)DOS.


Guenter

--
Milde ife.et.tu-dresden.de

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


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


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