Ar an seachtú lá déag de mí Méan Fómhair, scríobh Hrvoje Nikšić:
Of course, and more than once. Since I now use hr_US all the time,
any time I start XEmacs, it is with hr_US already "loaded".
Then I can’t reproduce your problem.
setxkbmap hr_US
mv ~/.xemacs/init.el ~/.xemacs/init.el-
echo "(require 'latin-euro-latin9)" > ~/.xemacs/init.el
rm ~/.xemacs/init.elc
xemacs-21.4.17 &
gives me an XEmacs where typing AltGr with the left square bracket produces
a Latin 2 character.
[...] Eek. That is amazingly evil.
Evil, sure. Not amazingly so; it’s a reasonable thing to do for the Euro
sign, where older XEmacs versions won’t know anything about the X11 keysym,
and the letters with carons make sense in a non-Mule XEmacs with a
-iso8859-15 font chosen.
I don't know why they added š and ž to Latin 9 in the first
place, but
hardcoding them to that charset in XEmacs definitely makes no sense. I
vote to remove scaron and zcaron from that code.
Seconded. Of course, that package is my baby so it’s one more thing I’m not
getting to right now. Have at it, if you have the free time.
> If (featurep 'latin-euro-latin9) or (featurep
'latin-unity-latin9)
> is true,
The former is t.
I've elided your text which refers to a workaround ("starting XEmacs
with hr_US already loaded") that doesn't work. I still think it makes
sense not to force scaron and zcaron into Latin 9, where they clearly
don't belong.
I think coding for both Mule and non-Mule involves jumping through too many
hoops to be remotely sure you’re doing it right, and this is just a symptom
of that.
Even if it worked, it wouldn't be a good workaround. People
*do*
switch keyboards, and switching keyboards can't be expected to break
things.
People switch keyboards, but this isn’t Windows, creating a personalised
keymapping so you don’t have to is trivial. Once you’ve done that, there’s
really no further need to.
--
„Frauen achten mehr aufs Herz und weniger auf Dummheiten. Darum leben sie
länger.“ (C.R. Zafón -- Übertragung von Peter Schwaar.)