Jakson Aquino wrote:

> On Thu, May 19, 2011 at 12:26 PM, Bram Moolenaar <[email protected]> wrote:
> > Patch 7.3.196
> > Problem:    Can't intercept a character that is going to be inserted.
> > Solution:   Add the InsertCharPre autocommand event. (Jakson A. Aquino)
> > Files:      runtime/doc/autocmd.txt, runtime/doc/eval.txt,
> >            runtime/doc/map.txt, src/edit.c, src/eval.c, src/fileio.c,
> >            src/vim.h
> 
> [...]
> 
> When using the Conque Shell plugin with the patch 7.3.196 applied to
> Vim I have to type very slowly in the Conque Term buffer because I get
> the following error when I type in normal speed:
> 
> Error detected while processing function conque_term#key_press:
> line    1:
> E523: Not allowed here
> Press ENTER or type command to continue
> 
> This error only happens if the text is locked (edit.c, lines 1394 and
> 1415). I can type normally if I comment out these two lines.

So what is line 1 in conque_term#key_press ?

> I only use the InsertCharPre event through the Conque Shell plugin. It
> would be nice if other people could comment on the need of locking the
> text since it doesn't seem to be necessary while using the Conque
> Shell. I've written to Nico Raffo, the author of the plugin, to know
> whether this problem could be fixed in the Conque Shell, but I didn't
> get any answer yet.

How come this function gets invoked from the InsertCharPre event?

The text is lockec because it may cause big problems.  E.g. undo could
be messed up.  This doesn't depend on actualy use of the event but on
what could possibly done with the event.

-- 
hundred-and-one symptoms of being an internet addict:
164. You got out to buy software, instead of going out for a beer.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui