From 098ba983220689662e04b2baf4c5acd8bf602f95 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 26 Aug 2002 12:38:59 +0000 Subject: [PATCH] (suppress-keymap): Use command remapping instead of substitute-key-definition to undefine self-inserting keys. --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 7ca081ebfef..6d5f4df5110 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -279,7 +279,7 @@ Non-strings in LIST are ignored." "Make MAP override all normally self-inserting keys to be undefined. Normally, as an exception, digits and minus-sign are set to make prefix args, but optional second arg NODIGITS non-nil treats them like other chars." - (substitute-key-definition 'self-insert-command 'undefined map global-map) + (define-key map [remap self-insert-command] 'undefined) (or nodigits (let (loop) (define-key map "-" 'negative-argument) -- 2.39.2