|
From: | Lennart Borgman |
Subject: | Re: How to avoid insert anything without switching to read only |
Date: | Mon, 11 Jul 2005 00:30:41 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Kim F. Storm wrote:
Thanks, but I am not able to understand how to apply any of your suggestions in a case like this. The problem is that the keyboard keys to change are all those that are outside a set of those defined to useful things (say a-z for simplicity). All other keys should be defined to do nothing. There are plenty of potential keys (65K). It does not seem to be possible to handle them all separately."Richard M. Stallman" <address@hidden> writes:When you put advice on primitive functions, it only works when they are called from Lisp code. The command loop calls self-insert directly in a special way, so your advice is not called. What you should do is rebind those characters to run another command, one that does your special thing and calls self-insert.Or use the command remap feature.
Can you please explain a little bit more in detail how you think this could be done? Could the actual available keyboard keys in a specific situation in some way be listed?
[Prev in Thread] | Current Thread | [Next in Thread] |