emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/man/custom.texi [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/man/custom.texi [lexbind]
Date: Sat, 04 Sep 2004 05:42:04 -0400

Index: emacs/man/custom.texi
diff -c emacs/man/custom.texi:1.48.2.7 emacs/man/custom.texi:1.48.2.8
*** emacs/man/custom.texi:1.48.2.7      Tue Jul  6 10:17:14 2004
--- emacs/man/custom.texi       Sat Sep  4 09:24:36 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,1661 ****
  @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}.
--- 1634,1648 ----
  @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}.  You should specify the same coding system for the file that
! you use for your keyboard.
! 
! @strong{Warning:} if you change the keyboard encoding, or change
! from unibyte to multibyte mode, such that the code that
! @kbd{C-q} inserts becomes different, you'll need to edit the
! Lisp expression accordingly.
  
  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}.




reply via email to

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