Hello Bram, Patch 7.2.025 broke periodic execution idiom [1], it seems.
[1] http://vim.wikia.com/wiki/Timer_to_execute_commands_periodically Can the ability to do perioc execution via CursorHold be restored ? Periodic execution is possible in GUI-enabled vim via spawning expernal subprocess that sends remote events to the vim. In console vim, the idiom [1] is was the only possible means to do periodic execution. 'updatetime' value served as a guarantee to not get 100%cpu, so it seemed clean, no ? It was used in several plugin, notably in "timetable" plugin that highlighted time-based lines of file based on current time. Thanks Yakov Patch 7.2.025 Problem: When a CursorHold event invokes system() it is retriggered over and over again. Solution: Don't reset did_cursorhold when getting K_IGNORE. Files: src/normal.c *** ../vim-7.2.024/src/normal.c Sat Sep 6 16:44:06 2008 --- src/normal.c Sat Sep 27 13:03:34 2008 *************** *** 1132,1138 **** out_flush(); #endif #ifdef FEAT_AUTOCMD ! did_cursorhold = FALSE; #endif State = NORMAL; --- 1132,1139 ---- out_flush(); #endif #ifdef FEAT_AUTOCMD ! if (ca.cmdchar != K_IGNORE) ! did_cursorhold = FALSE; #endif State = NORMAL; *** ../vim-7.2.024/src/version.c Thu Oct 2 22:48:01 2008 --- src/version.c Thu Oct 2 22:54:41 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 25, /**/ -- -- 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 To unsubscribe from this group, send email to vim_dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
