# HG changeset patch # User Brian Fox # Date 748597635 0 # Node ID 12ff77449baa71fb71e36d4dffea9a0a30972d2d # Parent ec8c8721b7e39b1b3ba520ea7689112abf51b892 (suppress-keymap): Use substitute-key-definition instead of manually checking each key (we were using 127 instead of 255 anyway). diff -r ec8c8721b7e3 -r 12ff77449baa lisp/subr.el --- a/lisp/subr.el Tue Sep 21 07:46:03 1993 +0000 +++ b/lisp/subr.el Tue Sep 21 07:47:15 1993 +0000 @@ -111,11 +111,7 @@ "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." - (let ((i 0)) - (while (<= i 127) - (if (eql (lookup-key global-map (char-to-string i)) 'self-insert-command) - (define-key map (char-to-string i) 'undefined)) - (setq i (1+ i)))) + (substitute-key-definition 'self-insert-command 'undefined map global-map) (or nodigits (let (loop) (define-key map "-" 'negative-argument)