Re: How to avoid insert anything without switching to read only

2005-07-11 Thread Stefan Monnier
> In viper-mode nothing should be inserted if you are in vi mode. It works for > all keys that are assigned commands (like i, o, a etc), but it does not work > for national characters. Those are not assigned to anything in > viper. I suggested to the maintainer that this should be fixed by advising

Re: How to avoid insert anything without switching to read only

2005-07-11 Thread Lennart Borgman
Stefan Monnier wrote: In viper-mode nothing should be inserted if you are in vi mode. It works for all keys that are assigned commands (like i, o, a etc), but it does not work for national characters. Those are not assigned to anything in viper. I suggested to the maintainer that this should be

Re: How to avoid insert anything without switching to read only

2005-07-11 Thread Kim F. Storm
Lennart Borgman <[EMAIL PROTECTED]> writes: > 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

Re: How to avoid insert anything without switching to read only

2005-07-10 Thread Lennart Borgman
David Kastrup wrote: I don't understand why it is worth doing in the first place. Why not just let those characters self-insert? They don't have any other meaning in vi. What use is it to have them beep? It is a bit like to have some control keys self-inserting in Emacs. _

Re: How to avoid insert anything without switching to read only

2005-07-10 Thread David Kastrup
Lennart Borgman <[EMAIL PROTECTED]> writes: > Kim F. Storm wrote: > >>"Richard M. Stallman" <[EMAIL PROTECTED]> writes: >> >>>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 rema

Re: How to avoid insert anything without switching to read only

2005-07-10 Thread Lennart Borgman
Kim F. Storm wrote: "Richard M. Stallman" <[EMAIL PROTECTED]> 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 thos

Re: How to avoid insert anything without switching to read only

2005-07-10 Thread Kim F. Storm
"Richard M. Stallman" <[EMAIL PROTECTED]> 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

Re: How to avoid insert anything without switching to read only

2005-07-09 Thread Richard M. Stallman
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 call

How to avoid insert anything without switching to read only

2005-07-09 Thread Lennart Borgman
In viper-mode nothing should be inserted if you are in vi mode. It works for all keys that are assigned commands (like i, o, a etc), but it does not work for national characters. Those are not assigned to anything in viper. I suggested to the maintainer that this should be fixed by advising `se