aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2003-05-28 08:56:29 +0000
committerKai Großjohann2003-05-28 08:56:29 +0000
commit94720bc7aaff353496e3d976a89426b17ddcc9ce (patch)
treed6e07ac7a22a57f19351ab6fbc24f4754b8f0220
parentcc8549df68dfe45e2aed861937674f4ecc6f622d (diff)
downloademacs-94720bc7aaff353496e3d976a89426b17ddcc9ce.tar.gz
emacs-94720bc7aaff353496e3d976a89426b17ddcc9ce.zip
(Init Rebinding): Xref Non-ASCII Rebinding, for
non-English letters. Explain how to set coding systems correctly and how to include the right coding cookie in the file.
-rw-r--r--man/ChangeLog6
-rw-r--r--man/custom.texi36
2 files changed, 42 insertions, 0 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index ac0c0d9f88c..1f52a603228 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,9 @@
12003-05-28 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net>
2
3 * custom.texi (Init Rebinding): Xref Non-ASCII Rebinding, for
4 non-English letters. Explain how to set coding systems correctly
5 and how to include the right coding cookie in the file.
6
12003-05-24 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> 72003-05-24 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net>
2 8
3 * trampver.texi: Version 2.0.34 released. 9 * trampver.texi: Version 2.0.34 released.
diff --git a/man/custom.texi b/man/custom.texi
index a37e5246689..98a42b33891 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -1712,6 +1712,42 @@ As you see, you represent a multi-character key sequence with a vector
1712by listing each of the characters within the square brackets that 1712by listing each of the characters within the square brackets that
1713delimit the vector. 1713delimit the vector.
1714 1714
1715 Language and encoding settings can be a reason for failing key
1716binding. For instance, say you have put the following in your init
1717file:
1718
1719@example
1720(global-set-key [?\M-ö] 'shell)
1721@end example
1722
1723@noindent
1724Now it can happen that the ö character read from the keyboard is
1725actually different from the ö character read from your init file, even
1726though they look the same. In this case, Emacs will not do what you
1727intended. First you should check whether they are the same or
1728different. In the above example, you would position point (the cursor)
1729on the ö character and hit @kbd{C-u C-x =} (the @kbd{C-u} part is
1730important). The second line of the output will contain the charset.
1731Now hit the ö key and position point on the character thus produced.
1732Again, hit @kbd{C-u C-x =}. If the two charsets are different, then you
1733have found the problem. The solution involves putting a `coding cookie'
1734in your init file, @pxref{File Variables}. For example, suppose that
1735the ö character from the init file has charset latin-iso8859-1 whereas
1736the ö character from the keyboard has charset latin-iso8859-15. The
1737solution is to put a coding cookie into the first line of the
1738@file{.emacs} file, as follows:
1739
1740@example
1741;; -*- coding: iso8859-15; -*-
1742@end example
1743
1744@noindent
1745@xref{Non-ASCII Rebinding}, if the charset printed by @kbd{C-u C-x =} is
1746`eight-bit-graphic'.
1747
1748 If the variable @code{keyboard-coding-system} is nil, it is probably
1749best to set it to the right value, according to the locale you work in.
1750
1715@node Function Keys 1751@node Function Keys
1716@subsection Rebinding Function Keys 1752@subsection Rebinding Function Keys
1717 1753