[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/custom.texi [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/man/custom.texi [emacs-unicode-2] |
Date: |
Fri, 27 Aug 2004 06:48:33 -0400 |
Index: emacs/man/custom.texi
diff -c emacs/man/custom.texi:1.57.2.2 emacs/man/custom.texi:1.57.2.3
*** emacs/man/custom.texi:1.57.2.2 Mon Jun 28 07:29:00 2004
--- emacs/man/custom.texi Fri Aug 27 07:00:30 2004
***************
*** 1619,1632 ****
@cindex rebinding address@hidden keys
@cindex address@hidden keys, binding
! If your keyboard has keys that send address@hidden characters, such as
! accented letters, rebinding these keys is a bit tricky. There are two
! solutions you can use. One is to specify a keyboard coding system,
! using @code{set-keyboard-coding-system} (@pxref{Specify Coding}).
! Then you can bind these keys in the usual address@hidden that you
! should avoid the string syntax for binding 8-bit characters, since
! they will be interpreted as meta keys. @xref{Strings of
! Events,,,elisp, The Emacs Lisp Reference Manual}.}, like this:
@example
(global-set-key address@hidden 'some-function)
--- 1619,1631 ----
@cindex rebinding address@hidden keys
@cindex address@hidden keys, binding
! If your keyboard has keys that send address@hidden
! characters, such as accented letters, rebinding these keys
! must be done by using a vector like address@hidden that
! you should avoid the string syntax for binding
! address@hidden characters, since they will be
! interpreted as meta keys. @xref{Strings of Events,,,elisp,
! The Emacs Lisp Reference Manual}.}:
@example
(global-set-key address@hidden 'some-function)
***************
*** 1635,1664 ****
@noindent
Type @kbd{C-q} followed by the key you want to bind, to insert @var{char}.
! Since this puts a address@hidden character in the @file{.emacs}, you should
! specify the proper coding system for that file. @xref{Init Syntax}.
! Specify the same coding system for the file that you use for your
! keyboard.
!
! If you don't specify a keyboard coding system, that approach won't
! work. Instead, you need to find out the actual code that the terminal
! sends. The easiest way to do this in Emacs is to create an empty
! buffer with @kbd{C-x b temp @key{RET}}, make it unibyte with @kbd{M-x
! toggle-enable-multibyte-characters @key{RET}}, then type the key to
! insert the character into this buffer.
!
! Move point before the character, then type @kbd{C-x =}. This
! displays a message in the minibuffer, showing the character code in
! three ways, octal, decimal and hexadecimal, all within a set of
! parentheses. Use the second of the three numbers, the decimal one,
! inside the vector to bind:
! @example
! (global-set-key address@hidden 'some-function)
! @end example
!
! If you bind 8-bit characters like this in your init file, you may find it
! convenient to specify that it is unibyte. @xref{Enabling Multibyte}.
@node Mouse Buttons
@subsection Rebinding Mouse Buttons
--- 1634,1649 ----
@noindent
Type @kbd{C-q} followed by the key you want to bind, to insert @var{char}.
! Since this puts a address@hidden character in the @file{.emacs},
! you should specify for that file a coding system that supports
! that character. @xref{Init Syntax}.
!
! @strong{Warning:} if you change the keyboard encoding, such that the code that
! @kbd{C-q} inserts becomes different, you'll need to edit the
! Lisp expression accordingly.
! @strong{Warning:} @kbd{C-q} will insert the wrong code if you visit
! the file @file{.emacs} in a unibyte buffer, so don't do that.
@node Mouse Buttons
@subsection Rebinding Mouse Buttons
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/man/custom.texi [emacs-unicode-2],
Miles Bader <=