help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-set-key [? \ M-ö]


From: Kai Großjohann
Subject: Re: global-set-key [? \ M-ö]
Date: Thu, 29 May 2003 13:56:43 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Martin aus Chemnitz <address@hidden> writes:

> I'm a little bit confused by your discussion.
>
> As far as I can remember, I tried all of your suggestions including
> (kbd "M-ö")
> ;-*- coding: latin-1 -*-
> ;-*- coding: latin-9 -*-
> ;(set-language-environment 'German)
> comparing the encoding (C-u C-x C-=, its the same)
>
> Tell me (fool-proof please) what to do and I'll try it.

I created a file foo.el that looks like this (two lines):

;-*- coding: latin-1; -*-
(global-set-key (kbd "M-ö") 'forward-word)

I then started Emacs as follows:

    emacs -q -no-site-file -l foo.el

In the *scratch* buffer, I moved to the beginning of the buffer and
then I typed ESC <compose> " o.  (I don't have a German keyboard, so
<compose> " o is my way of typing the ö character in X11.  You would
hit your ö key directly.)  The cursor moved forward a word.

I then changed the file foo.el to say latin-9 instead of latin-1, and
then tried the same thing.  The cursor did not move forward.
Instead, I got a beep.

Also at the beginning of the *scratch* buffer, I typed <compose> "
o (you'd type ö directly).  Then I typed C-u C-x = and saw the
following:

/----
|   character: ö (04366, 2294, 0x8f6, U+00F6)
|     charset: latin-iso8859-1
|            (Right-Hand Part of Latin Alphabet 1 (ISO/IEC 8859-1): ISO-IR-100.)
|  code point: 118
|      syntax: w        which means: word
|    category: l:Latin  
| buffer code: 0x81 0xF6
|   file code: F6 (encoded by coding system iso-latin-9)
|        font: -ETL-Fixed-Medium-R-Normal--16-160-72-72-C-80-ISO8859-1
\----

Note the second line -- the character is a latin-1 character.

Now I typed C-x C-f foo.el RET and positioned point on the ö and
typed C-u C-x = again, and got this output:

/----
|   character: ö (07566, 3958, 0xf76, U+00F6)
|     charset: latin-iso8859-15
|            (Right-Hand Part of Latin Alphabet 9 (ISO/IEC 8859-15): 
ISO-IR-203.)
|  code point: 118
|      syntax: w        which means: word
|    category: l:Latin  
| buffer code: 0x8E 0xF6
|   file code: F6 (encoded by coding system iso-latin-9-unix)
|        font: -Adobe-Helvetica-Medium-R-Normal--17-120-100-100-P-88-ISO8859-15
\----

Note the second line -- the character is a latin-9 character.

Does this make things clearer?
-- 
This line is not blank.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]