[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: bind buffer-modifying keys to `undefined' in buffers where no modifi
From: |
Drew Adams |
Subject: |
RE: bind buffer-modifying keys to `undefined' in buffers where no modification should occur? |
Date: |
Mon, 18 Oct 2004 09:58:11 -0700 |
That's just what I was suggesting (though I used `undefined' instead of
`ignore') - for all keys bound to buffer-modifying commands. I don't think
that's really the same as unbinding those keys, though. (But it's OK by me.)
-----Original Message-----From: Kim F. Storm
"Drew Adams" <address@hidden> writes:
> can you effectively
> unbind a (global) key sequence for a given mode?]
(define-key local-map [remap self-insert-command] 'ignore)
However C-h b doesn't show the effect of this in a very sensible
manner:
<remap> <self-insert-command> ignore
This shows three problems with C-h b:
- it should list the actual bindings rather than <remap> ...
- it should not list the unmapped bindings
- it should skip bindings to 'ignore' (effectively omitting
all bindings that don't have any effect).