jed-users mailing list

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

Re: problem with non ascii chars in xjed on kubuntu 7.10


G. Milde schrieb:

To check whether DFA or traditional highlight is used, look at a multi
line string like """this is an example"""

* in tradition highlight, the whole string should be coloured in "string
  colour".
this is not the case
* in DFA highlight, the content of the string should be "normal" and only
  the """ in "string colour".

only the third " is in "string color"

I have a debian setup with my settings in /etc/jed.d/10aixtra.sl


1. I put

disable_dfa_syntax_for_mode("python");

in my python_mode_hook. That gave an error:

...

Strange. Unfortunately, this is too complex for me to sort it out easily.
Also, it does not throw an error here, if I put
define python_mode_hook()
{
   % ... other settings ...
   disable_dfa_syntax_for_mode("python");
   use_syntax_table("python");
}

in my ~/.jed/jed.rc file.

I put it at the beginning of 10aixtra.sl that gave no error but had no effect either:

This might be due to pymode.sl overwriting your setting when it is loaded.

Also, after a lot of wondering and experimenting, I found that the
(enable|disable)_dfa_syntax_highlight() commands only take effect after a
new call to use_syntax_table().

I deleted pymode.dfa in my jed/lib

This is important after every change to the dfa highlight rules, i.e.
after applying Jörgs fix (which is the better solution anyway).

I invoked xjed with two buffers one with a python-file and one with an slang-file I can enter the umlauts are displayed correct in the sl-buffer and incorrect in the python-buffer.

What happens after an M-X disable_dfa_syntax_for_mode("python"); given
interactive after loading the *.py file?

* Does the colour of a multi-line string change?
* Does the display of an Umlaut change?
no

What happens after an additional M-X use_syntax_table("python") ?

now everything is correct.

now I have to find out where this is set. Where is "HAS_DFA_SYNTAX" defined ?



--
Gruß Joachim

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


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