> -----Original Message-----
> From: Marko Mahnic
> Sent: domenica 1 maggio 2005 10.39
> Subject: Re: charset.sl
> Modehook only runs after the file is loaded so you can only
> recode the buffer in memory. We could add more switches to
> modeline_hook2:
>
>     { case "coding": ...              // this is already used by python
>     { case "encoding": ...
>
> from which we could call charset_convert_buffer_to_utf8.
> If there is no modeline for encoding we could use a more
> elaborate guess_charset() to detect the encoding of the
> memory buffer and then call charset_convert_buffer_to_utf8.
>
> guess_charset could also call XXX_guess_charset for specific
> modes (tex_guess_charset, html_guess_charset, ...).
Marko, your mail is full of good ideas: I was thinking a complete different
way to integrate charset and modehook, and it was a lot more complex.
This is an implementation of your ideas: an updated charset.sl and two small
patches: one for site.sl (changing mode_hook()) and another for modehook.sl.
> some thougths:
> http://ruptured-duck.com/jed-users/msg00515.html
>
It seems that I missed this mail... Too bad, as there where a lot of useful
hints!
Thanks!
						Dino
Attachment:
charset.sl
Description: Binary data
Attachment:
site-guess-encoding-on-mode_hook.diff
Description: Binary data
Attachment:
modehook-check-coding.diff
Description: Binary data