Commit 098ba983 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(suppress-keymap): Use command remapping instead of

substitute-key-definition to undefine self-inserting keys.
parent fc4bd430
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment