diff options
| author | Andreas Schwab | 2003-01-12 20:51:36 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-01-12 20:51:36 +0000 |
| commit | e70cccc0c8884cb28f14a3e9bdd442f22f3959e5 (patch) | |
| tree | a0f321284641eb008b2a428f909b6d38962ef468 | |
| parent | 5d1825c6fbb5e1be263bd79eea109bdc097fc8df (diff) | |
| download | emacs-e70cccc0c8884cb28f14a3e9bdd442f22f3959e5.tar.gz emacs-e70cccc0c8884cb28f14a3e9bdd442f22f3959e5.zip | |
(picture-substitute): Use command remapping instead of
substitute-key-definition.
| -rw-r--r-- | lisp/textmodes/picture.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 031341e75e0..08357632177 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; picture.el --- "Picture mode" -- editing using quarter-plane screen model | 1 | ;;; picture.el --- "Picture mode" -- editing using quarter-plane screen model |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1994, 2002 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1985, 1994, 2002, 2003 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: K. Shane Hartman | 5 | ;; Author: K. Shane Hartman |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -590,7 +590,7 @@ Leaves the region surrounding the rectangle." | |||
| 590 | (defvar picture-mode-map nil) | 590 | (defvar picture-mode-map nil) |
| 591 | 591 | ||
| 592 | (defun picture-substitute (oldfun newfun) | 592 | (defun picture-substitute (oldfun newfun) |
| 593 | (substitute-key-definition oldfun newfun picture-mode-map global-map)) | 593 | (define-key picture-mode-map (vector 'remap oldfun) newfun)) |
| 594 | 594 | ||
| 595 | (if (not picture-mode-map) | 595 | (if (not picture-mode-map) |
| 596 | (progn | 596 | (progn |