]> git.eshelyaron.com Git - emacs.git/commitdiff
(suppress-keymap): Use substitute-key-definition instead of manually
authorBrian Fox <bfox@gnu.org>
Tue, 21 Sep 1993 07:47:15 +0000 (07:47 +0000)
committerBrian Fox <bfox@gnu.org>
Tue, 21 Sep 1993 07:47:15 +0000 (07:47 +0000)
checking each key (we were using 127 instead of 255 anyway).

lisp/subr.el

index b2b27e62ba479a01ce0857694b7851b70e2f0695..aa158175998d29875d4623338d72a34fde8f10fe 100644 (file)
@@ -111,11 +111,7 @@ If ALL-FRAMES is neither nil nor t, stick strictly to the selected frame."
   "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)