aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/subr.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index b2b27e62ba4..aa158175998 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -111,11 +111,7 @@ If ALL-FRAMES is neither nil nor t, stick strictly to the selected frame."
111 "Make MAP override all normally self-inserting keys to be undefined. 111 "Make MAP override all normally self-inserting keys to be undefined.
112Normally, as an exception, digits and minus-sign are set to make prefix args, 112Normally, as an exception, digits and minus-sign are set to make prefix args,
113but optional second arg NODIGITS non-nil treats them like other chars." 113but optional second arg NODIGITS non-nil treats them like other chars."
114 (let ((i 0)) 114 (substitute-key-definition 'self-insert-command 'undefined map global-map)
115 (while (<= i 127)
116 (if (eql (lookup-key global-map (char-to-string i)) 'self-insert-command)
117 (define-key map (char-to-string i) 'undefined))
118 (setq i (1+ i))))
119 (or nodigits 115 (or nodigits
120 (let (loop) 116 (let (loop)
121 (define-key map "-" 'negative-argument) 117 (define-key map "-" 'negative-argument)