Ar an cúigiú lá déag de mí Lúnasa, scríobh Stephen J. Turnbull:
QUERY
Aidan Kehoe writes:
> * skk-leim.el (skk-leim):
> Setting the current language environment to Japanese just because
> skk-leim.el was loaded is wrong.
This is very arguable. Yes, it looks very wrong (which is one reason
why the whole concept of a global language environment disgusts me),
but I always have to do this by hand because inserting Unicode files
will give the wrong answer in Japanese buffers unless you force the
environment (specifically the Unicode precedence list) to Japanese.
What goes wrong if you have a Japanese language environment in a
non-Japanese buffer?
The buffer is mostly irrelevant to the problem I see. I want to type some
Kana on my Western European keyboard; I press C-u C-\ japanese-skk RET ,
then input konichiwa . The Kana come up as question marks (this is on the
TTY). When I examine the current console-tty-coding-system, it’s EUC-JP, not
UTF-8 as my startup files configure it to be. I did not ask for the current
console-tty-coding-system to be changed; nor did I ask for the unicode
precedence list to be changed, or anything of the sort. All I wanted was the
input method, and that temporarily, but because activating the input method
loaded skk-leim.el the whole shebang went astray. Were loading a Cyrillic
input method to change my entire language environment I would be equally
annoyed, but fortunately none of them do that.
I’ve also been told in the past that it’s a general principle of XEmacs
packages that loading a file should be idempotent, and that there should
ideally be further steps necessary to activate it the feature that it makes
available. (An exception to this has just bitten us in the arse with Tramp,
unfortunately.)
--
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches