- Subject: Re: Jed problem(s) fixed... issues resolved...
- From: Paul Boekholt <p.boekholt@xxxxxxxxx>
- Date: Mon, 09 Jan 2006 21:53:56 +0100
On Mon, 9 Jan 2006 17:31:46 +0100, "G. Milde" <g.milde@xxxxxx> said:
> Could it be possible to use ANSII escape sequences for the coloring? This
> would also facilitate parallel use of a syntax highlight and flyspell.
> A save-file hook could remove the esc-sequences before the file gets written
> to disk.
That's possible, but the escape sequences would be a real nuisance in a
buffer that's being edited.
But maybe I can get flyspell to work with utf-8. Syntax highlighting uses
byte-semantics, here's a patch for syntax.sl:
--- /usr/local/jed/lib/syntax.sl Mon Oct 24 18:41:46 2005
+++ syntax.sl Mon Jan 9 21:47:51 2006
@@ -33,7 +33,7 @@
% add old keywords
kws += define_keywords_n (tbl, "", len, n);
- num = strlen (kws) / len;
+ num = strbytelen (kws) / len;
!if (num) return "";
hash = Assoc_Type[Int_Type];
@@ -41,7 +41,7 @@
_for (0, num-1, 1)
{
i = ();
- hash [substr (kws, 1 + i * len, len)] = 1;
+ hash [kws[[i * len:(1 +i) * len - 1]]] = 1;
}
add_hash_to_syntax_table (tbl, hash, len, n);
@@ -58,7 +58,7 @@
%!%-
define add_keyword_n (tbl, kw, n)
{
- variable len = strlen (kw);
+ variable len = strbytelen (kw);
!if (len) return;
() = add_keywords (tbl, kw, len, n);
}
--------------------------
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]