]> git.eshelyaron.com Git - emacs.git/commitdiff
(Commentary): Use command remapping instead of
authorAndreas Schwab <schwab@suse.de>
Sun, 12 Jan 2003 20:48:49 +0000 (20:48 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 12 Jan 2003 20:48:49 +0000 (20:48 +0000)
substitute-key-definition.

lisp/mail/mailabbrev.el

index 3412a791f77575cc9ea699c4cc323d3d005e62a3..b2edf77786181adffe3d212ceea962ff787fed9a 100644 (file)
@@ -1,6 +1,6 @@
 ;;; mailabbrev.el --- abbrev-expansion of mail aliases
 
-;; Copyright (C) 1985, 86, 87, 92, 93, 96, 1997, 2000, 2002
+;; Copyright (C) 1985, 86, 87, 92, 93, 96, 1997, 2000, 2002, 2003
 ;;     Free Software Foundation, Inc.
 
 ;; Author: Jamie Zawinski <jwz@lucid.com>, now <jwz@jwz.org>
 ;;  (add-hook
 ;;   'mail-mode-hook
 ;;   (lambda ()
-;;      (substitute-key-definition 'next-line 'mail-abbrev-next-line
-;;                              mail-mode-map global-map)
-;;      (substitute-key-definition 'end-of-buffer 'mail-abbrev-end-of-buffer
-;;                              mail-mode-map global-map)))
+;;      (define-key mail-mode-map [remap next-line] 'mail-abbrev-next-line)
+;;      (define-key mail-mode-map [remap end-of-buffer] 'mail-abbrev-end-of-buffer)))
 ;;
 ;; If you want multiple addresses separated by a string other than ", " then
 ;; you can set the variable mail-alias-separator-string to it.  This has to