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

lisp/textmodes/picture.el

index 031341e75e099432cdc8a1c72cad017945406e64..08357632177a8b8d1afe21272906c0f838bb7e30 100644 (file)
@@ -1,6 +1,6 @@
 ;;; picture.el --- "Picture mode" -- editing using quarter-plane screen model
 
-;; Copyright (C) 1985, 1994, 2002 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1994, 2002, 2003 Free Software Foundation, Inc.
 
 ;; Author: K. Shane Hartman
 ;; Maintainer: FSF
@@ -590,7 +590,7 @@ Leaves the region surrounding the rectangle."
 (defvar picture-mode-map nil)
 
 (defun picture-substitute (oldfun newfun)
-  (substitute-key-definition oldfun newfun picture-mode-map global-map))
+  (define-key picture-mode-map (vector 'remap oldfun) newfun))
 
 (if (not picture-mode-map)
     (progn