Re: [patch] CursorHold retriggering

2011-05-11 Fir de Conversatie Christian Brabandt
Hi Bram! On Fr, 06 Mai 2011, Bram Moolenaar wrote: Now that you looked at the code, perhaps you have an idea about this bug report: CursorHold repeats typed key when it's the start of a mapping. (Will Gray, 2011 Mar 23) I think, the Problem is, that OP_PENDING isn't set yet. But I am not

Re: CursorHold retriggering

2011-05-06 Fir de Conversatie Christian Brabandt
Hi Benjamin! On Mi, 04 Mai 2011, Benjamin R. Haskell wrote: I'm not quite following all of this. What's the use case for firing an event every X milliseconds *if the user isn't moving the cursor*? Wouldn't it be far more useful to have something like JavaScript-style setInterval()?

Re: CursorHold retriggering

2011-05-06 Fir de Conversatie Gary Johnson
On 2011-05-06, Christian Brabandt wrote: Hi Benjamin! On Mi, 04 Mai 2011, Benjamin R. Haskell wrote: I'm not quite following all of this. What's the use case for firing an event every X milliseconds *if the user isn't moving the cursor*? Wouldn't it be far more useful to have

Re: CursorHold retriggering

2011-05-06 Fir de Conversatie Ingo Karkat
On 06-May-2011 09:18, mattn wrote: Sorry about my cutting into your topic. I think vim shouldn't use unique value for timer interval 'updatetime'. I guess most of users won't like this interface. Because, some script application may run the timer quickly. but someone don't expect. We

Re: CursorHold retriggering

2011-05-06 Fir de Conversatie mattn
I agree your said except No3. ;-) Perhaps, we will hope an interface to stop the timer. And No3 will disappoint that. Thanks. - Yasuhiro Matsumoto On Friday, May 6, 2011 5:25:11 PM UTC+9, Ingo Karkat wrote: On 06-May-2011 09:18, mattn wrote: Sorry about my cutting into your topic. I

Re: CursorHold retriggering

2011-05-06 Fir de Conversatie Ingo Karkat
On 06-May-2011 11:51, mattn wrote: On Friday, May 6, 2011 5:25:11 PM UTC+9, Ingo Karkat wrote: I agree that setInterval() would help. As a script writer, I could also imagine something like this: 3. autocmd timeout=4000 CursorHold * ... I agree your said except No3. ;-) Perhaps, we

Re: [patch] CursorHold retriggering

2011-05-06 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Hi Bram! On Do, 05 Mai 2011, Bram Moolenaar wrote: It's simpler if you have it either return zero, KE_CURSORHOLD or KE_CURSORHOLDR. Would we need a separate CursorHoldRepeat and CursorHoldRepeatI? So that we can separate Normal and Insert mode? Would

Re: [patch] CursorHold retriggering

2011-05-05 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing something. Need for CursorHold that retriggers. Use a key that doesn't do anything, or a function that resets

Re: [patch] CursorHold retriggering

2011-05-05 Fir de Conversatie Christian Brabandt
On Thu, May 5, 2011 2:25 pm, Bram Moolenaar wrote: Christian Brabandt wrote: Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing something. Need for CursorHold that retriggers. Use a key that

Re: [patch] CursorHold retriggering

2011-05-05 Fir de Conversatie Christian Brabandt
Hi Bram! On Do, 05 Mai 2011, Bram Moolenaar wrote: It's simpler if you have it either return zero, KE_CURSORHOLD or KE_CURSORHOLDR. Would we need a separate CursorHoldRepeat and CursorHoldRepeatI? So that we can separate Normal and Insert mode? Would at least be more consistent.

[patch] CursorHold retriggering

2011-05-04 Fir de Conversatie Christian Brabandt
Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing something. Need for CursorHold that retriggers. Use a key that doesn't do anything, or a function that resets did_cursorhold. regards, Christian --

Re: [patch] CursorHold retriggering

2011-05-04 Fir de Conversatie Andy Wokula
Am 04.05.2011 08:59, schrieb Christian Brabandt: Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing something. Need for CursorHold that retriggers. Use a key that doesn't do anything, or a function

Re: [patch] CursorHold retriggering

2011-05-04 Fir de Conversatie Christian Brabandt
On Wed, May 4, 2011 11:19 am, Andy Wokula wrote: Am 04.05.2011 08:59, schrieb Christian Brabandt: Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing something. Need for CursorHold that retriggers.

Re: [patch] CursorHold retriggering

2011-05-04 Fir de Conversatie Andy Wokula
Am 04.05.2011 11:49, schrieb Christian Brabandt: On Wed, May 4, 2011 11:19 am, Andy Wokula wrote: Am 04.05.2011 08:59, schrieb Christian Brabandt: Hi Bram, attached patch fixes this issue from todo.txt: 8 Add an event like CursorHold that is triggered repeatedly, not just once after typing

Re: CursorHold retriggering

2011-05-04 Fir de Conversatie Andy Wokula
Am 04.05.2011 21:12, schrieb Ben Fritz: On May 4, 5:05 am, Andy Wokulaanw...@yahoo.de wrote: Both autocommands are independent of each other, except that the CursorHold event will also trigger CursorHoldR autocommands. This is because I find it confusing if the CursorHoldR event triggers

Re: CursorHold retriggering

2011-05-04 Fir de Conversatie Christian Brabandt
Hi Ben! On Mi, 04 Mai 2011, Ben Fritz wrote: On May 4, 5:05 am, Andy Wokula anw...@yahoo.de wrote: Both autocommands are independent of each other, except that the CursorHold event will also trigger CursorHoldR autocommands. This is because I find it confusing if the

Re: CursorHold retriggering

2011-05-04 Fir de Conversatie Benjamin R. Haskell
On Wed, 4 May 2011, Christian Brabandt wrote: On Mi, 04 Mai 2011, Ben Fritz wrote: On May 4, 5:05 am, Andy Wokula wrote: Both autocommands are independent of each other, except that the CursorHold event will also trigger CursorHoldR autocommands. This is because I find it confusing if the