From: Andreas Schwab Date: Sun, 12 Jan 2003 20:48:49 +0000 (+0000) Subject: (Commentary): Use command remapping instead of X-Git-Tag: ttn-vms-21-2-B4~11722 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6b8236923e39e8f5974fe92886a2e4bbfd59dae9;p=emacs.git (Commentary): Use command remapping instead of substitute-key-definition. --- diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 3412a791f77..b2edf777861 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el @@ -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 , now @@ -111,10 +111,8 @@ ;; (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