To: vim_dev@googlegroups.com Subject: Patch 8.2.4887 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4887 Problem: Channel log does not show invoking a timer callback. Solution: Add a ch_log() call. Files: src/time.c *** ../vim-8.2.4886/src/time.c 2022-04-04 15:16:50.742014128 +0100 --- src/time.c 2022-05-06 14:56:49.287015393 +0100 *************** *** 477,482 **** --- 477,492 ---- typval_T rettv; typval_T argv[2]; + #ifdef FEAT_JOB_CHANNEL + if (ch_log_active()) + { + callback_T *cb = &timer->tr_callback; + + ch_log(NULL, "invoking timer callback %s", + cb->cb_partial != NULL ? cb->cb_partial->pt_name : cb->cb_name); + } + #endif + argv[0].v_type = VAR_NUMBER; argv[0].vval.v_number = (varnumber_T)timer->tr_id; argv[1].v_type = VAR_UNKNOWN; *************** *** 484,489 **** --- 494,503 ---- rettv.v_type = VAR_UNKNOWN; call_callback(&timer->tr_callback, -1, &rettv, 1, argv); clear_tv(&rettv); + + #ifdef FEAT_JOB_CHANNEL + ch_log(NULL, "timer callback finished"); + #endif } /* *** ../vim-8.2.4886/src/version.c 2022-05-06 14:29:04.637209906 +0100 --- src/version.c 2022-05-06 14:51:19.431439568 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4887, /**/ -- Two percent of zero is almost nothing. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///