emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lispref/keymaps.texi


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/keymaps.texi
Date: Sat, 18 Jun 2005 09:51:33 -0400

Index: emacs/lispref/keymaps.texi
diff -c emacs/lispref/keymaps.texi:1.63 emacs/lispref/keymaps.texi:1.64
*** emacs/lispref/keymaps.texi:1.63     Thu May 19 23:36:58 2005
--- emacs/lispref/keymaps.texi  Sat Jun 18 13:51:33 2005
***************
*** 1335,1344 ****
  instead of @code{kill-line} and @code{kill-word}.  It can establish
  this by making these two command-remapping bindings in its keymap:
  
! @example
  (define-key my-mode-map [remap kill-line] 'my-kill-line)
  (define-key my-mode-map [remap kill-word] 'my-kill-word)
! @end example
  
  Whenever @code{my-mode-map} is an active keymap, if the user types
  @kbd{C-k}, Emacs will find the standard global binding of
--- 1335,1344 ----
  instead of @code{kill-line} and @code{kill-word}.  It can establish
  this by making these two command-remapping bindings in its keymap:
  
! @smallexample
  (define-key my-mode-map [remap kill-line] 'my-kill-line)
  (define-key my-mode-map [remap kill-word] 'my-kill-word)
! @end smallexample
  
  Whenever @code{my-mode-map} is an active keymap, if the user types
  @kbd{C-k}, Emacs will find the standard global binding of
***************
*** 1349,1358 ****
  
  Remapping only works through a single level.  In other words,
  
! @example
  (define-key my-mode-map [remap kill-line] 'my-kill-line)
  (define-key my-mode-map [remap my-kill-line] 'my-other-kill-line)
! @end example
  
  @noindent
  does not have the effect of remapping @code{kill-line} into
--- 1349,1358 ----
  
  Remapping only works through a single level.  In other words,
  
! @smallexample
  (define-key my-mode-map [remap kill-line] 'my-kill-line)
  (define-key my-mode-map [remap my-kill-line] 'my-other-kill-line)
! @end smallexample
  
  @noindent
  does not have the effect of remapping @code{kill-line} into




reply via email to

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